1
我遇到了我的UWP应用程序中项目之间的引用问题。我在编译时遇到以下错误。有效载荷包含两个或多个文件
...\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1692,5): error APPX1101: Payload contains two or more files with the same destination path 'Microsoft.Win32.Primitives.dll'. Source files:
...\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1692,5): error APPX1101: [NUGET_PATH]\.nuget\packages\Microsoft.Win32.Primitives\4.0.0\lib\dotnet\Microsoft.Win32.Primitives.dll
...\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1692,5): error APPX1101: [NUGET_PATH]\.nuget\packages\runtime.win.Microsoft.Win32.Primitives\4.0.1\runtimes\win\lib\netstandard1.3\Microsoft.Win32.Primitives.dll
.
.
.
我附上了一个重现问题的示例应用程序。我在我的解决方案中使用了nuget软件包(FlickrNet,Instasharp,UWP Toolkit)。很明显,如果我删除项目之间的所有参考,解决方案编译得很好。
https://1drv.ms/u/s!AkM_7yXYPcncm5JGyUaqR5w_jYhnLA
我似乎无法理解“重复”,以及如何解决它的原因。
似乎是[Instasharp](https://github.com/InstaSharp/InstaSharp)中的问题,请参阅[GitHub上的此问题](https://github.com/InstaSharp/InstaSharp/issues/128) 。 –
感谢Jay的快速回复! – Maximus