strongnamer
strongnamer copied to clipboard
Error NETSDK1152 when publishing .NET 6.0 project
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?
sadly no answer here yet i am also looking for a fix instead of the workaround
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