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

Error on .net9 rc2, Ubuntu 22 #47

Open
felixf4xu opened this issue Nov 8, 2024 · 1 comment
Open

Error on .net9 rc2, Ubuntu 22 #47

felixf4xu opened this issue Nov 8, 2024 · 1 comment

Comments

@felixf4xu
Copy link

Hi,

I'm testing blazorwasm in Ubuntu 22, with commands as below:

dotnet new blazorwasm -o WasmApp
cd WasmApp/
dotnet add package BlazorWasmPreRendering.Build
dotnet publish

then I have this error:

WasmApp failed with 1 error(s) (11.1s) → bin/Release/net9.0/publish/
/home/cc/.nuget/packages/blazorwasmprerendering.build/4.0.1/build/BlazorWasmPreRendering.Build.targets(64,5): error MSB3073: The command ""/home/cc/dotnet/dotnet" "/home/cc/.nuget/packages/blazorwasmprerendering.build/4.0.1/build/../tools//BlazorWasmPreRendering.Build.dll" --assemblyname "WasmApp" -t "WasmApp.App" --selectorofrootcomponent "#app,app" --selectorofheadoutletcomponent "head::after" -p "/home/cc/testcode/WasmApp/bin/Release/net9.0/publish" -i "/home/cc/testcode/WasmApp/obj/Release/net9.0/." --assemblydir "/home/cc/testcode/WasmApp/bin/Release/net9.0" -m "" -f "" --serviceworkerassetsmanifest "" --environment "Prerendering" --emulateauthme "true" --locale "en" -o "IndexHtmlInSubFolders" -u "" -r "Static" --serverport "5050-5999" --bwapoptionsdllext "bin"" exited with code 1.

@jsakamoto
Copy link
Owner

Hi @felixf4xu,

Could you try to use the version 5.0 preview 2? You can update your project by following the command:

dotnet add package BlazorWasmPreRendering.Build --version 5.0.0-preview.2

Since the .NET 9 SDK has not been officially released yet, I've kept the latest version of the "BlazorWasmPreRendering" package as a preview release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants