Adding changes to support use monovsdbg to debug wasm apps.#7220
Adding changes to support use monovsdbg to debug wasm apps.#7220thaystg wants to merge 31 commits intodotnet:mainfrom
Conversation
src/shared/utils.ts
Outdated
| } | ||
|
|
||
| export function isWebAssemblyProject(projectPath: string): boolean { | ||
| const projectFileText = fs.readFileSync(projectPath, 'utf8'); |
…_ASSEMBLIES to enable hotreload.
…/vscode-csharp into dev/thays/support_wasm_monovsdbg
|
@gregg-miskelly can you please review again? |
|
Did you want to update a case for the updatePackageDependencies script? |
I'm using npm run updatePackageDependencies to update the webassembly package but I didn't need to change this file. |
|
@thaystg Is this still a change we want to consider? |
|
Correct, we will work on it yet, but I will mark it as a draft for now. |
|
Can I get a review again here? |
| ] | ||
| }, | ||
| { | ||
| "id": "VSWebAssemblyBridge", |
There was a problem hiding this comment.
Should this be added here so you can use the update dependencies script?
| } | ||
| }); | ||
| assetsPath = assetsPath.slice(0, -1); | ||
| return [assetsPath, this.executableProjects[0].outputPath]; |
There was a problem hiding this comment.
There was a problem hiding this comment.
The program name is basically not used, is a requirement for concord, but we don't use it for wasm, that is why I'm getting the first one.
The assets path is used to load the metadata, this one is important.
| return [assetsPath, this.executableProjects[0].outputPath]; | ||
| } | ||
|
|
||
| public isDotNet9OrNewer(): boolean { |
|
|
||
| export function isWebProject(projectPath: string): boolean { | ||
| const projectFileText = fs.readFileSync(projectPath, 'utf8'); | ||
| export function isWebProject(projectPath: string): [boolean, boolean] { |
There was a problem hiding this comment.
We now have two ways to detect a Blazor project. Should a project that is a Blazor project always have both? Or is one of them just going to return true for a subset of blazor projects?
…/vscode-csharp into dev/thays/support_wasm_monovsdbg
|
can we get some news here? |
Adding changes to support debug wasm apps using monovsdbg.
Tested scenarios with the new setting enabled and this PR:
With Assets and C# DevKit Not Installed targetting .NET 8 (Blazor Wasm) - DISABLED
With Assets and C# DevKit Not Installed targetting .NET 8 (Blazor Server Wasm) - DISABLED
With Assets and C# DevKit Not Installed targetting .NET 9 (Blazor Wasm) - ENABLED
With Assets and C# DevKit Not Installed targetting .NET 9 (Blazor Server Wasm) - ENABLED
With Assets and C# DevKit Installed targetting .NET 8 (Blazor Wasm) - DISABLED
With Assets and C# DevKit Installed targetting .NET 8 (Blazor Server Wasm) - DISABLED
With Assets and C# DevKit Installed targetting .NET 9 (Blazor Wasm) - ENABLED
With Assets and C# DevKit Installed targetting .NET 9 (Blazor Server Wasm) - ENABLED
Without Assets and C# DevKit Installed targetting .NET 8 (Blazor Wasm) - DISABLED
Without Assets and C# DevKit Installed targetting .NET 8 (Blazor Server Wasm) - DISABLED
Without Assets and C# DevKit Installed targetting .NET 9 (Blazor Wasm) - ENABLED
Without Assets and C# DevKit Installed targetting .NET 9 (Blazor Server Wasm) - ENABLED
Tested scenarios only updating C# DevKit with the monovsdbg support:
Tested scenarios with this PR and C# DevKit without the monovsdbg support:
With Assets and C# DevKit Installed targetting .NET 8 (Blazor Wasm) - DISABLED
With Assets and C# DevKit Installed targetting .NET 8 (Blazor Server Wasm) - DISABLED
With Assets and C# DevKit Installed targetting .NET 9 (Blazor Wasm) - ENABLED
With Assets and C# DevKit Installed targetting .NET 9 (Blazor Server Wasm) - ENABLED
Without Assets and C# DevKit Installed targetting .NET 8 (Blazor Wasm) - DISABLED
Without Assets and C# DevKit Installed targetting .NET 8 (Blazor Server Wasm) - DISABLED
Without Assets and C# DevKit Installed targetting .NET 9 (Blazor Wasm) - DISABLED
Without Assets and C# DevKit Installed targetting .NET 9 (Blazor Server Wasm) - DISABLED