Skip to content
This repository was archived by the owner on Nov 28, 2024. It is now read-only.

Commit 98f05d8

Browse files
committed
Fix an issue that packaging with latest nuget.exe results in error NU5050: Attempted to pack multiple files into the same location(s). The issue is with nuget.exe version 5.10 and above.
Change nuspec to copy the contents of Binaries folder to lib folder when packing nuget, without excluding ARM, ARM64, x86 and x64 folders and then copying them one by one. With this change packing with latest nuget.exe does not result in error.
1 parent 8ac1cae commit 98f05d8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

BuildTools/Nuspecs.UWP/Package.UniversalWindowsPlatform.nuspec

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@
1616
<language>en-US</language>
1717
</metadata>
1818
<files>
19-
<file src="$DeployDirectory$\$BinariesSubDir$\**" target="lib\uap10.0" exclude="$DeployDirectory$\$BinariesSubDir$\ARM\**;$DeployDirectory$\$BinariesSubDir$\ARM64\**;DeployDirectory$\$BinariesSubDir$\x86\**;$DeployDirectory$\$BinariesSubDir$\x64\**"/>
20-
<file src="$DeployDirectory$\$BinariesSubDir$\ARM\**\*" target="lib\uap10.0\ARM"/>
21-
<file src="$DeployDirectory$\$BinariesSubDir$\ARM64\**\*" target="lib\uap10.0\ARM64"/>
22-
<file src="$DeployDirectory$\$BinariesSubDir$\x86\**\*" target="lib\uap10.0\x86"/>
23-
<file src="$DeployDirectory$\$BinariesSubDir$\x64\**\*" target="lib\uap10.0\x64"/>
19+
<file src="$DeployDirectory$\$BinariesSubDir$\**" target="lib\uap10.0"/>
2420
<file src="$NuspecsDir$\$Id$.targets" target="build\uap10.0"/>
2521
<file src="$NuspecsDir$\VisualStudioToolsManifest.xml" target="tools"/>
2622
<file src="$DeployDirectory$\License.md" target="LicenseAgreements" />

0 commit comments

Comments
 (0)