-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Publishing a Maui Windows app SelfContained=false doesn't run #7170
Comments
Also noticed this when trying out the ClickOnce publishing, this seems to be the only thing from stopping that to work. |
I think what needs to happen is the Maui Additionally, I added a change to dotnet/sdk#25358 to support You'll also need to specify a RuntimeIdentifier when building the app, as there isn't a RuntimeIdentifier-agnostic version of the runtime pack available. |
Probably this should be transferred to the dotnet/maui repo, but it looks like I don't have permissions for that. |
@dsplaisted I moved this, thanks. Should |
It should be OK to set |
I have the same problem, when using SelfContained (false). Compiling from Visual Studio 17.3.0 Preview 2.0 (windows) |
This is part of the solution for #7170
@dsplaisted I tried setting this to true but then it fails for class libraries:
It seems this ResolveRuntimePackAssets only runs on windows |
Hi @eerhardt. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version. You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Describe the bug
When I try to package, install, and run a Maui Windows app with SelfContained=false, it doesn't run. It pops up a dialog:
The reason this happens is because this is generated into the runtimeconfig.json file:
Notice the
FromWorkload
things forMicrosoft.Maui.*
. These things shouldn't be in the runtimeconfig.json file. Removing them allows the app to proceed.To Reproduce
dotnet new maui
dotnet build -c Release -f net6.0-windows10.0.19041.0
bin\Release\net6.0-windows10.0.19041.0\win10-x64
folder.Further technical details
cc @dsplaisted
The text was updated successfully, but these errors were encountered: