WinUI3 unpackaged self contained application publishing is failing #3026
Unanswered
pbasithmpy
asked this question in
Q&A
Replies: 1 comment 1 reply
-
For some reason platform needs to be defined as well. With this included on the command you are running it would now look like
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was trying to make a winui3 unpackaged self contained application. But when I try to publish application with "dotnet publish" it is getting an error saying like this,
.nuget\packages\microsoft.windowsappsdk\1.1.5\buildTransitive\Microsoft.WindowsAppSDK.SelfContained.targ
ets(42,5): error : The platform 'AnyCPU' is not supported for Self Contained mode. [C:\Users\bsthp\source\repos\XSight_
windows\XSightUI\XSightUI.csproj]
command that I tried : dotnet publish ..\UI\UI.csproj -c $(Configuration) -r win10-x64 -p:PublishSingleFile=true -o ..\Executables\UI
Beta Was this translation helpful? Give feedback.
All reactions