-
Notifications
You must be signed in to change notification settings - Fork 4.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
Blazor WebAssembly AOT Fails On Windows For Paths With a Space #101055
Comments
dotnet-policy-service
bot
added
the
untriaged
New issue has not been triaged by the area owner
label
Apr 15, 2024
@radical since it seems like you typically field this sort of ticket. |
Reproduction summary:
|
4 tasks
Fixed by #101109. |
@ilonatommy Thank you. Do you know when this will be released? Will it come out in a potential 8.0.5 next month? |
It looks like it just missed 8.0.5 but will be in 8.0.6 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Similar to #92335, enabling AOT compilation for a project that contains a space will fail.
Reproduction Steps
Pretty simple. Create a new standalone webassembly project and name it "Space Test". Enable AOT compilation with
<RunAOTCompilation>true</RunAOTCompilation>
in the csproj property group, then rundotnet publish
in the solution folder.Expected behavior
AOT compilation should not fail due to a space in the path/project.
Actual behavior
Compilation fails.
Regression?
No response
Known Workarounds
Remove spaces from path and projects. This "worked" for me in my production project simply for testing purposes, however, similar to the other issue I filed, I wouldn't want to change this permanently.
Configuration
Windows 11
Dotnet 8.0.204
Other information
I did not test this on another OS, hence why I titled this Windows, but given I had issues with MacOS before it's likely worth testing on that OS as well. I'm unable to do so right now as I file this ticket.
Error output:
As you can see, the giveaway for me that the space was the issue was here and how it gives up upon encountering the space: "Can not open image C:\Users\EddieHartman\source\repos\Space "
Unlike the other issue though, I had to change the parent folder name and the project name in order to get things to compile properly, so the whole path needs quoted, escaped, whatever needs to go on to enable AOT compilation.
The text was updated successfully, but these errors were encountered: