SharpCompress v0.12.4 NuGet package causes payload errors when building with Visual Studio 2015 Update 3 #125

Closed
opened 2026-01-29 22:07:00 +00:00 by claunia · 2 comments
Owner

Originally created by @maxhora on GitHub (Sep 14, 2016).

Hello,

After I have updated Visual Studio to the latest Update 3 (Anniversary edition) and tried to build Universal application project, where SharpCompress NuGet package is used along with Microsoft.NETCore.UniversalWindowsPlatform v.5.1.0, I've started getting following errors during build:

Error Payload contains two or more files with the same destination path 'Microsoft.Win32.Primitives.dll'. Source files:
C:\Users\Admin.nuget\packages\Microsoft.Win32.Primitives\4.0.0\lib\dotnet\Microsoft.Win32.Primitives.dll
C:\Users\Admin.nuget\packages\runtime.win.Microsoft.Win32.Primitives\4.0.1\runtimes\win\lib\netstandard1.3\Microsoft.Win32.Primitives.dll

and similar errors for assemblies: System.Diagnostics.Tools.dll , System.Globalization.Calendars.dll, System.Threading.Timer.dll and System.Net.Sockets.dll

Such errors happens just with empty UWP project created with latest Visual Studio and with added SharpCompress NuGet package ialong with Microsoft.NETCore.UniversalWindowsPlatform v.5.1.0

I'm not sure how can I handle this issue correctly, it will be great if you will able to provide some suggestions regarding this,

Thank you,
Max

Originally created by @maxhora on GitHub (Sep 14, 2016). Hello, After I have updated Visual Studio to the latest Update 3 (Anniversary edition) and tried to build Universal application project, where SharpCompress NuGet package is used along with Microsoft.NETCore.UniversalWindowsPlatform v.5.1.0, I've started getting following errors during build: Error Payload contains two or more files with the same destination path 'Microsoft.Win32.Primitives.dll'. Source files: C:\Users\Admin.nuget\packages\Microsoft.Win32.Primitives\4.0.0\lib\dotnet\Microsoft.Win32.Primitives.dll C:\Users\Admin.nuget\packages\runtime.win.Microsoft.Win32.Primitives\4.0.1\runtimes\win\lib\netstandard1.3\Microsoft.Win32.Primitives.dll and similar errors for assemblies: System.Diagnostics.Tools.dll , System.Globalization.Calendars.dll, System.Threading.Timer.dll and System.Net.Sockets.dll Such errors happens just with empty UWP project created with latest Visual Studio and with added SharpCompress NuGet package ialong with Microsoft.NETCore.UniversalWindowsPlatform v.5.1.0 I'm not sure how can I handle this issue correctly, it will be great if you will able to provide some suggestions regarding this, Thank you, Max
Author
Owner

@adamhathcock commented on GitHub (Sep 14, 2016):

Looks like UWP 5.1.0 is really old and drags in old dependencies.

5.2.2 is what you want: https://www.nuget.org/packages/Microsoft.NETCore.UniversalWindowsPlatform/5.2.2

@adamhathcock commented on GitHub (Sep 14, 2016): Looks like UWP 5.1.0 is really old and drags in old dependencies. 5.2.2 is what you want: https://www.nuget.org/packages/Microsoft.NETCore.UniversalWindowsPlatform/5.2.2
Author
Owner

@maxhora commented on GitHub (Sep 14, 2016):

Thank you very much for the answer!
Just moment ago I have solved dependencies issue by embedding all sources directly into the project.

Yes, with 5.2.2 it seems work fine! (but one another lib in my project complain with 5.2.2, so I'm trying to stick with 5.1.0 =) )

@maxhora commented on GitHub (Sep 14, 2016): Thank you very much for the answer! Just moment ago I have solved dependencies issue by embedding all sources directly into the project. Yes, with 5.2.2 it seems work fine! (but one another lib in my project complain with 5.2.2, so I'm trying to stick with 5.1.0 =) )
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#125