Skip to content
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

Closed
Eddie-Hartman opened this issue Apr 15, 2024 · 5 comments
Closed

Blazor WebAssembly AOT Fails On Windows For Paths With a Space #101055

Eddie-Hartman opened this issue Apr 15, 2024 · 5 comments
Assignees
Milestone

Comments

@Eddie-Hartman
Copy link

Eddie-Hartman commented Apr 15, 2024

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 run dotnet 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:

C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\8.0.4\Sdk\WasmApp.Native.targets(686,5): error : Precomp
iling failed for C:\Users\EddieHartman\source\repos\Space Test\Space Test\obj\Release\net8.0\wasm\for-publish\aot-in\aot-ins
tances.dll with exit code 1. [C:\Users\EddieHartman\source\repos\Space Test\Space Test\Space Test.csproj]
C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\8.0.4\Sdk\WasmApp.Native.targets(686,5): error : Can not
 open image C:\Users\EddieHartman\source\repos\Space [C:\Users\EddieHartman\source\repos\Space Test\Space Test\Space Test.cs
proj]

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.

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Apr 15, 2024
@Eddie-Hartman
Copy link
Author

@radical since it seems like you typically field this sort of ticket.

@lewing lewing added this to the 9.0.0 milestone Apr 15, 2024
@lewing lewing removed the untriaged New issue has not been triaged by the area owner label Apr 15, 2024
@ilonatommy
Copy link
Member

ilonatommy commented Apr 16, 2024

Reproduction summary:

@ilonatommy
Copy link
Member

Fixed by #101109.

@Eddie-Hartman
Copy link
Author

@ilonatommy Thank you. Do you know when this will be released? Will it come out in a potential 8.0.5 next month?

@lewing
Copy link
Member

lewing commented Apr 18, 2024

@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

@github-actions github-actions bot locked and limited conversation to collaborators May 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants