dotnet publish
results in an error about duplicate files
#7845
Labels
dotnet publish
results in an error about duplicate files
#7845
Describe the bug
Based on this issue: dotnet/maui#9879
Passing a
-r win10-x64
to a app .csproj tries to load both a "neutral" and a "RID-specific" dll/pdb into the app:Steps to reproduce the bug
Failure: msbuild.binlog.zip
RuntimeIdentifierOverride
property set:Success: msbuild.binlog.zip
Expected behavior
Passing the RID should only apply the the app project, and the class library references should just be non-RID.
Screenshots
No response
NuGet package version
1.1.4
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 21H2 (22000)
IDE
Other
Additional context
I was able to make a workaround:
Add this to the bottom of the app .csproj:
Then when executing, use the new property instead of the RID:
The text was updated successfully, but these errors were encountered: