strongnamer icon indicating copy to clipboard operation
strongnamer copied to clipboard

Error NETSDK1152 when publishing .NET 6.0 project

Open petarpetrovt opened this issue 4 years ago • 2 comments

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?

petarpetrovt avatar Nov 11 '21 12:11 petarpetrovt

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

KDen404 avatar Aug 24 '22 14:08 KDen404

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

KDen404 avatar Aug 26 '22 19:08 KDen404