dsplaisted / strongnamer

MIT License
330 stars 51 forks source link

Error NETSDK1152 when publishing .NET 6.0 project #61

Open petarpetrovt opened 2 years ago

petarpetrovt commented 2 years ago

Updating the TF from net5.0 to net6.0 breaks the publishing of my project if i use StrongNamer library.

Microsoft.NET.ConflictResolution.targets(112,5):
error NETSDK1152: Found multiple publish output files with the same relative path:
D:\MyProject\.nuget\global\microsoft.exchange.webservices.netstandard\1.1.3\lib\netstandard2.0\Microsoft.Exchange.WebServices.NETStandard.dll
D:\MyProject\obj\Debug\net6.0\SignedAssemblies\Microsoft.Exchange.WebServices.NETStandard.dll

Currently there is an alternative to fix this via ErrorOnDuplicatePublishOutputFiles=false property. Can this be fixed without disabling the checks for duplicate files?

KDen404 commented 2 years ago

sadly no answer here yet i am also looking for a fix instead of the workaround

KDen404 commented 2 years ago

https://docs.microsoft.com/en-us/dotnet/core/compatibility/sdk/6.0/duplicate-files-in-output

this could be helpful for everyone else experiencing this issue