-
Notifications
You must be signed in to change notification settings - Fork 321
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
Cannot run the aot config publish app #4774
Comments
The link to SampleApp appears to be missing. Please attach a replacement sample app. |
https://github.com/jingliancui/WinuiPublishSampleApp |
@jingliancui |
I would suggest trying this again with the October .NET SDK update installed. That should have the source generator enabled and you won't need to the CsWinRT package reference or the WindowsSdkPackageVersion property. |
Hi @ghost1372 After reference the cswinrt and publish, error occurred:
|
@jingliancui can you upload a repro project? |
Hi @ghost1372 I've uploaded the the repo to github early, https://github.com/jingliancui/WinuiPublishSampleApp
That's my env:
|
after I remove the WindowsSdkPackageVersion, it can be build, but it still can not run. |
@ghost1372 could you view this video please? |
@ghost1372 And I wonder, why your config is debug and x64? and using f5? |
You can not Directly execute exe file, while you are using Packaged App!
|
@jingliancui |
Thanks @ghost1372 after add the config, and show below error when try to run
|
Try set this option:
If you get error again, download and install wasdk runtime from here https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads |
Finally it could work! @ghost1372 thank you so much! But do I need to open 2 new issue?
One is the VS UI publish config not work even I select SelfContained, it should config in the csproj by:
|
All of them are documented, you can find them in multiple sections https://learn.microsoft.com/en-us/windows/apps/package-and-deploy/project-properties Note that WindowsAppSDKSelfContained only control wasdk runtime, while SelfContained control dotnet runtime and all other dependencies. So if you need a full self-contained, then make sure both are set to true |
Describe the bug
https://github.com/jingliancui/WinuiPublishSampleApp
Steps to reproduce the bug
Expected behavior
the mainpage shows
Screenshots
no page shows
NuGet package version
Windows App SDK 1.6.1: 1.6.240923002
Packaging type
Unpackaged
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered: