Replies: 1 comment 2 replies
-
If you were running "net8.0" target on 9.0 SDK, you had to install |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Freshly installed Avalonia UI and trying project template Avalonia Cross Platform Application

Runned successfully desktop version but stuck on Avalonia trademark screen for web browser
Browser console says "avalonia.js net::ERR_ABORTED 404"
Tried dotnet workload install wasm-tools without better result
cleaned solution, rebuild, reboot, still the same 404 because of missing avalonia.js
upgraded Avalonia from 12.2.1 to 12.2.6 but no change
I created a new project from scratch with no luck, still the same issue.
I checked installed awsm-tools using
dotnet workload list
and saw i hadwasm-tools 9.0.4/9.0.100 SDK 9.0.200
My project's
TargetFramework
isnet8.0-browser
I noticed when i build my project, i have the following in Output :
>C:\Program Files\dotnet\sdk-manifests\9.0.100\microsoft.net.workload.mono.toolchain.current\9.0.4\WorkloadManifest.targets(205,5): warning : @(NativeFileReference) is not empty, but the native references won't be linked in, because neither $(WasmBuildNative), nor $(RunAOTCompilation) are 'true'. NativeFileReference=C:\Users\Shenron\.nuget\packages\skiasharp.nativeassets.webassembly\2.88.9\buildTransitive\netstandard1.0\..\..\build\netstandard1.0\libSkiaSharp.a\3.1.34\st\libSkiaSharp.a;C:\Users\Shenron\.nuget\packages\harfbuzzsharp.nativeassets.webassembly\7.3.0.3\buildTransitive\netstandard1.0\..\..\build\netstandard1.0\libHarfBuzzSharp.a\3.1.34\st\libHarfBuzzSharp.a
So I upgraded
TargetFramework
tonet9.0-browser
then run the appI have a SSL warning asking to trust ASP.NET Core SSL certificate - that was not the cas with .net8
Visual Studio start a new browser instance - that was not the cas with .net8
The app is now using the urls from launchSettings.json - that was not the cas with .net8 (5 digits random port every run)
And the app is now running fine
Note : i didn't changed Avalonia main (common) project where
TargetFramework
is stillnet8.0
Any explanation is welcome
Beta Was this translation helpful? Give feedback.
All reactions