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

[browser] WasmRuntimeAssetsLocation is not always provided by WebAssembly SDK #17388

Open
maraf opened this issue Oct 31, 2024 · 1 comment
Open

Comments

@maraf
Copy link

maraf commented Oct 31, 2024

Describe the bug

Avalonia browser assets rely on WasmRuntimeAssetsLocation in

<RelativePath>$(WasmRuntimeAssetsLocation)/%(FileName)%(Extension)</RelativePath>
. The property is not set if wasm-tools workload is not installed (WebAssembly SDK doesn't support it yet dotnet/runtime#90979).

Introduced in #14225
Reported by user in dotnet/runtime#109266

To Reproduce

dotnet new install avalonia.templates
dotnet new avalonia.xplat
dotnet publish *.Browser
dir *.Browser/bin/Release/net8.0-browser/publish/wwwroot/_framework/avalonia.js

Expected behavior

No response

Avalonia version

11.1.0

OS

No response

Additional context

No response

@kekekeks
Copy link
Member

The property is not set if wasm-tools workload is not installed

Without wasm-tools the SDK won't re-link the mono runtime with SkiaSharp included, so it will be broken anyway.

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

No branches or pull requests

3 participants