Skip to content

Improve documentation example for WebAssembly in Uno PlatformΒ #21780

Closed

Description

@newjack12

On which page? πŸ“„

https://github.com/unoplatform/uno

What's wrong? ❗

In the Uno Platform documentation, the "Quick Start" example for WebAssembly lacks instructions on how to enable Hot Reload when using VS Code.
Suggestion:
Add a note under the β€œQuick Start β†’ WebAssembly” section like:

Open VS Code β†’ run dotnet watch run -f wasm --output wwwroot β†’ visit http://localhost:5000 in the browser.

Benefit:
This would make it clearer for developers using VS Code, reducing confusion during their first Hot Reload setup.

Any feedback? πŸ’¬

No response

Activity

  1. added
    triage/untriaged
    difficulty/tbd
    on Nov 9, 2025
  2. DevTKSS commented on Nov 10, 2025

    @DevTKSS
    Contributor

    πŸ€” none of our .vscode/launch.json elements does use dotnet watch, is this working and recommended?
    and I think you meant this page maybe: https://platform.uno/docs/articles/create-an-app-vscode.html?tabs=Wasm
    this would at least be the page of Getting started about vs code and Wasm target.

    {
      // Use IntelliSense to find out which attributes exist for C# debugging
      // Use hover for the description of the existing attributes
      // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
      "version": "0.2.0",
      "configurations": [
        {
          "name": "Uno Platform Mobile Debug",
          "type": "Uno",
          "request": "launch",
          // any Uno* task will do, this is simply to satisfy vscode requirement when a launch.json is present
          "preLaunchTask": "Uno: android | Debug | android-x64"
        },
        {
          // Use IntelliSense to find out which attributes exist for C# debugging
          // Use hover for the description of the existing attributes
          // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
          "name": "Uno Platform WebAssembly Debug (Chrome)",
          "type": "chrome",
          "request": "launch",
          "url": "http://localhost:5000",
          "webRoot": "${workspaceFolder}/UnoApp7",
          "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
          "timeout": 30000,
          "preLaunchTask": "build-wasm",
          "server": {
            "runtimeExecutable": "dotnet",
            "program": "run",
            "args": ["--no-build","-f","net9.0-browserwasm","--launch-profile", "UnoApp7 (WebAssembly)"],
            "outputCapture": "std",
            "timeout": 30000,
            "cwd": "${workspaceFolder}/UnoApp7"
          }
        },
        {
          // Use IntelliSense to find out which attributes exist for C# debugging
          // Use hover for the description of the existing attributes
          // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
          "name": "Uno Platform WebAssembly Debug (Edge)",
          "type": "msedge",
          "request": "launch",
          "url": "http://localhost:5000",
          "webRoot": "${workspaceFolder}/UnoApp7",
          "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
          "timeout": 30000,
          "preLaunchTask": "build-wasm",
          "server": {
            "runtimeExecutable": "dotnet",
            "program": "run",
            "args": ["--no-build","-f","net9.0-browserwasm","--launch-profile", "UnoApp7 (WebAssembly)"],
            "outputCapture": "std",
            "timeout": 30000,
            "cwd": "${workspaceFolder}/UnoApp7"
          }
        },
        {
          // Use IntelliSense to find out which attributes exist for C# debugging
          // Use hover for the description of the existing attributes
          // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
          "name": "Uno Platform Desktop Debug",
          "type": "coreclr",
          "request": "launch",
          "preLaunchTask": "build-desktop",
          // If you have changed target frameworks, make sure to update the program path.
          "program": "${workspaceFolder}/UnoApp7/bin/Debug/net9.0-desktop/UnoApp7.dll",
          "args": [],
          "launchSettingsProfile": "UnoApp7 (Desktop)",
          "env": {
            "DOTNET_MODIFIABLE_ASSEMBLIES": "debug"
          },
          "cwd": "${workspaceFolder}/UnoApp7",
          // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
          "console": "internalConsole",
          "stopAtEntry": false
        },
      ]
    }

    and the tasks.json also not:

    {
      "version": "2.0.0",
      "tasks": [
        {
          "label": "build-wasm",
          "command": "dotnet",
          "type": "process",
          "args": [
            "build",
            "${workspaceFolder}/UnoApp7/UnoApp7.csproj",
            "/property:GenerateFullPaths=true",
            "/property:TargetFramework=net9.0-browserwasm",
            "/consoleloggerparameters:NoSummary"
          ],
          "problemMatcher": "$msCompile"
        },
        {
          "label": "publish-wasm",
          "command": "dotnet",
          "type": "process",
          "args": [
            "publish",
            "${workspaceFolder}/UnoApp7/UnoApp7.csproj",
            "/property:GenerateFullPaths=true",
            "/property:TargetFramework=net9.0-browserwasm",
            "/consoleloggerparameters:NoSummary"
          ],
          "problemMatcher": "$msCompile"
        },
        {
          "label": "build-desktop",
          "command": "dotnet",
          "type": "process",
          "args": [
            "build",
            "${workspaceFolder}/UnoApp7/UnoApp7.csproj",
            "/property:GenerateFullPaths=true",
            "/property:TargetFramework=net9.0-desktop",
            "/consoleloggerparameters:NoSummary"
          ],
          "problemMatcher": "$msCompile"
        },
        {
          "label": "publish-desktop",
          "command": "dotnet",
          "type": "process",
          "args": [
            "publish",
            "${workspaceFolder}/UnoApp7/UnoApp7.csproj",
            "/property:GenerateFullPaths=true",
            "/property:TargetFramework=net9.0-desktop",
            "/consoleloggerparameters:NoSummary"
          ],
          "problemMatcher": "$msCompile"
        }
      ]
    }
  3. added
    platform/wasm 🌐
    difficulty/starter πŸš€
    and removed
    triage/untriaged
    difficulty/tbd
    on Nov 25, 2025
  4. jeromelaban commented on Nov 25, 2025

    @jeromelaban
    Member

    Thanks for the PR. dotnet watch is not supposed to be the way to fix this issue, because the uno extension does the hot reload. Could you explain what's not working when you're trying to run the app with Ctrl+F5 or F5 and hotreload does not happen?

    /cc @dr1rrb

  5. Jen-Uno commented on Mar 6, 2026

    @Jen-Uno
    Contributor

    Validation update (2026-03-05): I reviewed this on branch fix/algolia-docsearch-duplicates-and-layout (PR #22789). This issue still persists / is not resolved by the current branch changes. Tracking and consolidation: #22788.

  6. Jen-Uno commented on Mar 6, 2026

    @Jen-Uno
    Contributor

    Correction to previous validation comment: After deeper review, this issue appears resolved. The hot reload docs at doc/articles/features/working-with-xaml-hot-reload.md now include VS Code columns in feature tables with WebAssembly rows (lines 102, 148, 200, 251, 275, 286-296). Tracking: #22788.

  7. Jen-Uno commented on Mar 6, 2026

    @Jen-Uno
    Contributor

    Closing: validation confirms WebAssembly Hot Reload instructions for VS Code are now documented. Related to #22788.

  8. github-actions commented on Apr 30, 2026

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.

  9. locked as resolved and limited conversation to collaborators on Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty/starter πŸš€kind/documentationplatform/wasm 🌐

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions