Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error NETSDK1152 when publishing .NET 6.0 project #61

Open
petarpetrovt opened this issue Nov 11, 2021 · 2 comments
Open

Error NETSDK1152 when publishing .NET 6.0 project #61

petarpetrovt opened this issue Nov 11, 2021 · 2 comments

Comments

@petarpetrovt
Copy link

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
Copy link

KDen404 commented Aug 24, 2022

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

@KDen404
Copy link

KDen404 commented Aug 26, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants