Describe the bug
Related to #306
If I generate the solution and build it in VS, and then run WASM from the commandline:
dotnet run --project tooling\ProjectHeads\AllComponents\Wasm\CommunityToolkit.App.Wasm.csproj
Everything works as expected.
But if I run from VS, it doesn't work, the call to WasmAppHost fails as it's looking at the wrong path:
WasmAppHost --use-staticwebassets --runtime-config I:\code\Labs-Windows\tooling\ProjectHeads\AllComponents\Wasm\bin\Debug\net9.0\CommunityToolkit.App.Wasm.runtimeconfig.json
(Notice the browser-wasm subfolder is missing)
Correct command:
WasmAppHost --use-staticwebassets --runtime-config I:\code\Labs-Windows\tooling\ProjectHeads\AllComponents\Wasm\bin\Debug\net9.0\browser-wasm\CommunityToolkit.App.Wasm.runtimeconfig.json
Steps to reproduce
1. Clone repo
2. GenerateAllSolution.bat
3. Run WASM head in VS
Fails to run
Expected behavior
Run WASM head
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2022
Visual Studio Build Number
No response
Device form factor
No response
Additional context
Tried in VS 2026 as well, had a few more issues trying to build there.
Help us help you
No, I'm unable to contribute a solution.
Describe the bug
Related to #306
If I generate the solution and build it in VS, and then run WASM from the commandline:
Everything works as expected.
But if I run from VS, it doesn't work, the call to
WasmAppHostfails as it's looking at the wrong path:(Notice the
browser-wasmsubfolder is missing)Correct command:
Steps to reproduce
Expected behavior
Run WASM head
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2022
Visual Studio Build Number
No response
Device form factor
No response
Additional context
Tried in VS 2026 as well, had a few more issues trying to build there.
Help us help you
No, I'm unable to contribute a solution.