Open egvijayanand opened 1 year ago
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.
Related to https://github.com/dotnet/maui/issues/5975
Ideally, the Run command should trigger a build if it is yet to be built or a change in the compilation artifacts.
Rather it simply attempts to run the executable. as from the log message, it is understood that it ends up with ... exited with code 3, which means that the ERROR_PATH_NOT_FOUND - The system cannot find the path specified.
Visual Studio Enterprise 17.8.0 Preview 2.0. Can repro this issue.
This is a known issue with .NET + Windows + Windows App SDK: https://github.com/microsoft/WindowsAppSDK/issues/2922
Description
Directly executing the Run command on the .NET MAUI App on the Windows platform as an Unpackaged App in .NET 8 Preview 2 ends up in an error.
Whereas building and then executing the project as a two-step action works fine.
The direct-run approach worked fine in Preview 1. A separate build step was not required in the earlier preview.
Steps to Reproduce
First, execute the Run command directly to visualize the error. Then issue the Build command and then the Run command again.
Run command:
Build command:
Link to public reproduction project repository
Default template itself is suffice, no authored code
Version with bug
8.0 previews
Last version that worked well
8.0 previews
Affected platforms
Windows
Affected platform versions
Windows SDK 10.0.19041
Did you find any workaround?
First, build and then run the project.
Relevant log output
Depends on