You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to publish a project as a self contained singled exe file (None WindowsPackage) now.
Everything works fine as long as it is the Debug configuration. But it failed with the following error message in the Release configuration.
2>C:\Users\kotoi\.nuget\packages\microsoft.windows.sdk.buildtools\10.0.26100.1742\bin\10.0.26100.0\x64\makepri.exe New -ProjectRoot C:\tmp\proj\App55\ -ConfigXml obj\x64\Release\net9.0-windows10.0.19041.0\win-x64\priconfig.xml -OutputFile C:\tmp\proj\App55\bin\x64\Release\net9.0-windows10.0.19041.0\win-x64\resources.pri -IndexName App55 -Verbose -Overwrite
2>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ConflictResolution.targets(112,5): Error NETSDK1152: Found multiple publish output files with the same relative path: C:\tmp\proj\App55\obj\x64\Release\net9.0-windows10.0.19041.0\win-x64\MsixContent\resources.pri, C:\tmp\proj\App55\bin\x64\Release\net9.0-windows10.0.19041.0\win-x64\resources.pri.
I spent a bit time to figure out what causes this error message, and it seems like a combination of WindowsAppSDKSelfContained with Release configuration cause of the issue.
It works when I commented out the WindowsAppSDKSelfContiane, but now the application requires WindowsApp runtime...
Steps to reproduce the bug
Open Visual Studio 2022 (17.12.0)
Create a WinUI project "Blank App, Packaged (WinUI 3 in Desktop)"
Modify
Modify "Publish Properties" part of the .csproj file
Add "Release" Configuration element to win-x64.pubxml file
Describe the bug
I'm trying to publish a project as a self contained singled exe file (None WindowsPackage) now.
Everything works fine as long as it is the Debug configuration. But it failed with the following error message in the Release configuration.
I spent a bit time to figure out what causes this error message, and it seems like a combination of WindowsAppSDKSelfContained with Release configuration cause of the issue.
It works when I commented out the WindowsAppSDKSelfContiane, but now the application requires WindowsApp runtime...
Steps to reproduce the bug
.csproj file:
win-x64.pubxml file:
Expected behavior
Publish should succeeded.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003
Windows version
Windows 11 (24H2): Build 26100
Additional context
No response
The text was updated successfully, but these errors were encountered: