Launch settings file for hosted WASM apps (#28385)

pull/28386/head
Luke Latham 2023-02-14 14:52:47 -05:00 committed by GitHub
parent 70d154a561
commit f620051332
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -1538,6 +1538,9 @@ The **:::no-loc text="Server":::** project's `Properties/launchSettings.json` fi
}
```
> [!NOTE]
> When the app is launched from the :::no-loc text="Server"::: project, only the `Properties/launchSettings.json` file in the :::no-loc text="Server"::: project is used. The `Properties/launchSettings.json` file in the :::no-loc text="Client"::: project is ***not*** used.
## Attach to an existing debugging session
To attach to a running Blazor app, create a `.vscode/launch.json` file with the following configuration. Replace the `{URL}` placeholder with the URL where the app is running:

View File

@ -47,6 +47,8 @@ For more information on trusting the ASP.NET Core HTTPS development certificate,
> [!IMPORTANT]
> When executing a hosted Blazor WebAssembly app, run the app from the solution's **:::no-loc text="Server":::** project.
>
> When the app is launched, only the `Properties/launchSettings.json` file in the :::no-loc text="Server"::: project is used.
:::zone-end
@ -250,6 +252,8 @@ Use the [.NET command-line interface (CLI)](/dotnet/core/tools/) to execute comm
> [!IMPORTANT]
> When executing a hosted Blazor WebAssembly app, run the app from the solution's **:::no-loc text="Server":::** project.
>
> When the app is launched, only the `Properties/launchSettings.json` file in the :::no-loc text="Server"::: project is used.
:::moniker range=">= aspnetcore-6.0"
@ -446,6 +450,8 @@ If a prompt appears to trust the development certificate, trust the certificate
> [!IMPORTANT]
> When executing a hosted Blazor WebAssembly app, run the app from the solution's **:::no-loc text="Server":::** project.
>
> When the app is launched, only the `Properties/launchSettings.json` file in the :::no-loc text="Server"::: project is used.
:::zone-end