diff --git a/catalog/Frameworks/Official-DotNet-Blazor/skills/add-aspire-to-blazor/SKILL.md b/catalog/Frameworks/Official-DotNet-Blazor/skills/add-aspire-to-blazor/SKILL.md new file mode 100644 index 00000000..ad845e3d --- /dev/null +++ b/catalog/Frameworks/Official-DotNet-Blazor/skills/add-aspire-to-blazor/SKILL.md @@ -0,0 +1,195 @@ +--- +license: MIT +name: add-aspire-to-blazor +description: >- + Add or complete .NET Aspire integration for an existing browser-hosted Blazor + WebAssembly app or ASP.NET Core Blazor Web App. DO NOT USE FOR: .NET MAUI, + Blazor Hybrid, BlazorWebView, or native-process telemetry, even if the request + mentions Aspire or the Aspire dashboard. USE FOR: "add Aspire to my Blazor app", + wiring a standalone WebAssembly gateway or a Blazor Web App into an AppHost, + configuring service discovery and same-origin API proxying, or exporting + OpenTelemetry from these web apps. Also exclude creating a new Blazor app + (use create-blazor-project), general HTTP data loading (use fetch-and-send-data), + non-Blazor apps, + Azure/Kubernetes deployment, or AppHost databases/containers/messaging unrelated to + the Blazor front end. +compatibility: Requires .NET 11.0 or later and Aspire 17.0 or later. The browser recipes require Aspire.Hosting.Blazor. +--- + +# Add .NET Aspire to a Blazor App + +Connect an existing Blazor front end to backend services through **Aspire service discovery** and stream its telemetry — including **browser telemetry** from a WebAssembly client — to the **Aspire dashboard**. + +## Prerequisites + +Require **.NET 11.0 or later** for the Blazor app and **Aspire 17.0 or later**. From the +solution directory, run `dotnet --version` and `aspire --version`. Inspect `global.json`, +the Blazor target frameworks, and the AppHost package versions. Check the version and +runtime required by the existing AppHost separately from the Blazor app's target. +Preserve working versions and package sources. If the project falls below the minimum, +report what must change and get agreement before upgrading. + +Use `--prerelease` when selecting `Aspire.Hosting.Blazor` for the browser recipes. +If the project requires stable-only packages, skip that integration and +report which browser capabilities it blocks. Use stable Aspire packages for server-only +orchestration. + +If the user asks for advice only, describe the applicable commands and edits without +executing them. Mark runtime checks as not run. + +## Workflow + +### Step 1 — Choose the Blazor path + +Inspect the app's project file, startup code, and render modes. Keep the existing render mode. + +| If you find | Do this | +|---|---| +| `Microsoft.NET.Sdk.BlazorWebAssembly`, `wwwroot/index.html`, and no server host | Open [standalone-gateway.md](references/standalone-gateway.md). Serve the client through a Blazor Gateway. | +| `Microsoft.NET.Sdk.Web` with `AddRazorComponents().AddInteractiveWebAssemblyComponents()` and `MapRazorComponents().AddInteractiveWebAssemblyRenderMode()` | Open [hosted-webapp.md](references/hosted-webapp.md). Keep the existing server as the browser host and configure its YARP proxy. | +| A Blazor Web App that uses only static SSR or Interactive Server | Configure the AppHost, server defaults, and server-side API discovery. Skip the browser steps. Do not add a `.Client` project or a gateway. | + +Resolve links relative to this `SKILL.md`. If a reference is missing, list `references` +once and report which instructions you could not verify. + +### Step 2 — Report capabilities and actions before editing + +Write a `Capabilities` table with columns `Status`, `Capability`, and `Finding`. Use +✅ **Present**, ❌ **Missing**, — **Not applicable**, or ⚠️ **Blocked**. For each item +below, name the observed version, project, registration, or configuration that supports +the status. Do not mark runtime behavior as verified from source alone. + +| Capability | Check | +|---|---| +| .NET and Aspire | Record each detected version and whether it meets the minimum. | +| AppHost | Report project-based or single-file, and whether it exists or is selected for creation. If it exists, check for `DistributedApplication.CreateBuilder` and its AppHost package or SDK. | +| Resource registration | Check that the AppHost registers each relevant app, gateway, and managed API. | +| Blazor hosting | Report the path selected in Step 1. | +| API dependencies | List each as AppHost-managed or third-party. If the app calls no APIs, report `none`. | +| Server defaults | Check each hosted server and owned API for `AddServiceDefaults()` before `Build()` and `MapDefaultEndpoints()` before `Run()`. Reuse an existing defaults library. | +| WebAssembly defaults | Find the client service-defaults library, confirm the WASM project references it, and check startup for `AddBlazorClientServiceDefaults()`. Check that the library matches the hosting path in Step 1. | +| Browser hosting and configuration | Check the standalone gateway, base path, and client configuration, or the hosted server's `WithBrowserOptions` wiring. | +| API discovery | Check that the app references each managed API resource in the AppHost and the applicable HTTP clients use its resource name, not a literal backend host or port. If a hosted component runs on both server and browser, check that both register the same named or typed client. | +| Browser API proxy | Check for a gateway reference on the standalone path or a mapped YARP route on the hosted path. Confirm the browser gets the proxy address through configuration. | +| Server telemetry | Check exporter configuration for each applicable server resource. | +| Browser telemetry | Check that the dashboard exposes an HTTP/protobuf OTLP receiver and that the browser gets a same-origin OTLP path. Do not count the server's exporter as browser telemetry. | + +Apply these rules before selecting actions: + +- If no APIs exist, mark API discovery and API proxying **Not applicable**. Keep the + applicable hosting and telemetry steps. If only third-party APIs exist, preserve their + URLs and access policies. Do not register them for Aspire discovery or proxy them by + default. Configure discovery for AppHost-managed APIs even when there are no third-party APIs. +- If the app does not run WebAssembly, mark browser-only capabilities **Not applicable**. +- Under `Actions`, number only the changes needed for **Missing** items. Name each + file relative to the solution root. For commands, name the working directory and + show the resolved command. For **Blocked** items, name the prerequisite or decision + instead of scheduling the blocked action. If no changes are needed, write `Actions: none`. + +Replace each `<>` before running a command. Resolve path placeholders +relative to the stated working directory. Run the actions in order, then +verify the applicable capabilities in Step 5. + +### Step 3 — Add the AppHost and server defaults + +Run the commands in this step from the solution root. + +1. If there is no AppHost, run `dotnet new aspire-apphost -o "<>"` for a project-based + host or `dotnet new aspire-apphost-singlefile -o "<>"` for a file-based host. If a + template is missing, run `dotnet new install "Aspire.ProjectTemplates::<>"` + with the matching template version. Keep an existing AppHost's format. +2. If the hosted server or an owned API lacks server defaults, reuse the solution's + defaults library. If none exists, run `dotnet new aspire-servicedefaults -o "<>"`. + Add a reference from each server project that needs it, substituting the actual paths: + + ```bash + dotnet add "<>" reference "<>" + ``` + + Call `builder.AddServiceDefaults()` before `Build()` and `app.MapDefaultEndpoints()` + before `Run()`. Do not reference server defaults from a WebAssembly project. +3. Register missing hosted servers and owned APIs with `AddDotnetProject`, using paths + relative to the AppHost. If the hosted server calls an owned API, add a reference + from the server to the API resource: + + ```csharp + var api = builder.AddDotnetProject("your-api", "../Api/Api.csproj"); + builder.AddDotnetProject("webapp", "../WebApp/WebApp.csproj").WithReference(api); + ``` + + Keep legacy `Projects.*` references used by other resources. +4. Configure server HTTP clients that call an AppHost-managed API to use the API + resource name. Use an `https` discovery URI for HTTPS-only or `https+http` if HTTP + fallback is allowed. Keep working registrations and transport policy. + +### Step 4 — Add the missing WebAssembly wiring + +1. Skip this step if the app does not run WebAssembly or cannot use the Blazor hosting + package. Otherwise, follow [the shared client setup](references/wasm-client.md) to + generate or reuse client service defaults and wire them in the client's `Program.cs`. + Register resource-named HTTP clients only for AppHost-managed APIs. Reuse the same + registration on the hosted server if the component also calls the API there. +2. Follow the reference selected in Step 1. For standalone, register the client with + `AddBlazorWasmApp`, add `WithReference(api)` if it calls an AppHost-managed API, + attach it to the gateway with `WithBlazorClientApp`, and match `index.html`'s + `` to the resource sub-path. For hosted, map the + AppHost-generated proxy routes with YARP, and pass browser configuration using + `WithBrowserOptions`. Keep proxy setup and configuration parsing in a separate + helper file; call the helpers from `Program.cs`. For AppHost-managed APIs, route + browser requests through the app origin and verify protected routes still enforce + authorization. +3. Check that the browser receives an OTLP path. If Aspire cannot resolve a dashboard + HTTP/protobuf receiver, configure it in the active AppHost profile using + [dashboard endpoint troubleshooting](references/troubleshooting.md#missing-browser-otlp-endpoint). + Do not send dashboard addresses or credentials to the browser. + +### Step 5 — Run the AppHost and verify each signal + +From the AppHost directory, use the existing HTTPS profile and run: + +```bash +aspire run +``` + +1. In a second terminal in the AppHost directory, run `aspire describe --format Json`. + Check resource states and take the app or gateway HTTPS URL from the output. For + standalone, check the [gateway configuration](references/standalone-gateway.md#validate) + before opening a browser. +2. Open the app and trigger one interaction. Use the browser's Network panel or, if + installed, `playwright-cli` in one named session: + + ```shell + playwright-cli -s=blazor-validation open "<>" + playwright-cli -s=blazor-validation snapshot + playwright-cli -s=blazor-validation requests + ``` + + Use `goto` for a deep link and `click` with an element reference from `snapshot` if + needed. Confirm visible app content and inspect the statuses of framework assets, + any applicable same-origin API request, and the browser's OTLP posts. Use the + [standalone](references/standalone-gateway.md#validate) or + [hosted](references/hosted-webapp.md#validate) checks for the exact paths. +3. Use Aspire CLI to confirm dashboard ingestion for each applicable server or browser + telemetry source. Use the actual source name, not the gateway name for browser telemetry: + + ```shell + aspire otel logs "<>" --limit 5 + aspire otel spans "<>" --limit 5 --format Json + ``` + + If the app calls a managed API, take the trace ID from the relevant request span and + run `aspire otel spans --trace-id "<>"` to check the app and API spans together. +4. Keep the page open through one metric export interval if checking browser metrics. + Aspire 17's CLI does not show metrics. To verify dashboard display, open **Metrics** + in the dashboard and select the emitting resource. If you only observe a successful + metrics POST, report **export accepted; dashboard display not checked**. Do not + share the dashboard login token. Close the Playwright session if you opened it: + `playwright-cli -s=blazor-validation close`. + +Write a `Verification` table with columns `Check`, `Status`, and `Evidence`. Mark each +applicable check **Passed**, **Failed**, or **Not run**. Cite the observed result or +explain why the check could not run. Do not report browser telemetry as verified from +a successful build or server-only trace. + +If a check fails, open [troubleshooting.md](references/troubleshooting.md) and follow +the entry for the observed symptom. diff --git a/catalog/Frameworks/Official-DotNet-Blazor/skills/add-aspire-to-blazor/manifest.json b/catalog/Frameworks/Official-DotNet-Blazor/skills/add-aspire-to-blazor/manifest.json new file mode 100644 index 00000000..19fcc403 --- /dev/null +++ b/catalog/Frameworks/Official-DotNet-Blazor/skills/add-aspire-to-blazor/manifest.json @@ -0,0 +1,6 @@ +{ + "version": "0.1.3", + "category": "Web", + "compatibility": "Requires a Blazor project or solution.", + "package_prefix": "Microsoft.AspNetCore.Components" +} diff --git a/catalog/Frameworks/Official-DotNet-Blazor/skills/add-aspire-to-blazor/references/hosted-webapp.md b/catalog/Frameworks/Official-DotNet-Blazor/skills/add-aspire-to-blazor/references/hosted-webapp.md new file mode 100644 index 00000000..c581ed3d --- /dev/null +++ b/catalog/Frameworks/Official-DotNet-Blazor/skills/add-aspire-to-blazor/references/hosted-webapp.md @@ -0,0 +1,234 @@ +# Hosted Blazor Web App + Aspire (server-hosted YARP + browser telemetry) + +For a **Blazor Web App** (`Microsoft.NET.Sdk.Web` server calling `AddRazorComponents()`, any interactivity: Server, WebAssembly, or Auto). The web app joins the AppHost as a **server project**. On this path the **server** reaches the API and pushes configuration to the browser: it hosts a **YARP reverse proxy** (bound from config the AppHost emits) so the interactive-WASM client reaches the API and the OTLP dashboard **same-origin**, and it pushes service-discovery + OTLP config to the client with `WithBrowserOptions` (delivered via the Blazor-Configuration DOM comment — no `/_blazor/_configuration` endpoint and no gateway). + +Work through the capabilities below and add only what the solution is missing. The moving parts that make browser telemetry work here are the AppHost's `ProxyBlazorService`/`ProxyBlazorTelemetry` calls, the server's YARP proxy bound from the host-emitted config, and the server's `WithBrowserOptions` push. + +For static SSR or Interactive Server without WebAssembly execution, skip the client defaults, +YARP browser proxy, browser configuration push, and browser telemetry sections. Register the server +with the AppHost and add server/API service defaults and discovery only. Do not add a `.Client` +project or change render modes. For mixed-mode apps, preserve the existing render-mode registrations +and apply browser pieces only to the WebAssembly path; the code below illustrates both modes. +Keep existing middleware, authentication/authorization, antiforgery, and endpoint behavior when +merging the examples; do not replace the entire startup file. +Decide how each proxied API is authorized before exposing it. YARP routes do not inherit +authorization from Blazor pages. If the front end enforces access control, configure the +appropriate YARP `AuthorizationPolicy` on the generated API route and verify that an +unauthenticated request is rejected. Same-origin routing does not enforce authorization. + +Project and resource names here (`WebApp`/`WebApp.Client`, `ClientServiceDefaults`, `your-api`, `webapp`) are illustrative — map them to the solution's actual names and paths. + +## Contents +- [Shared WebAssembly client setup](wasm-client.md) +- [Server: YARP proxy + browser config push](#server-yarp-proxy--browser-config-push) +- [The AppHost: proxy the API and its telemetry](#the-apphost-proxy-the-api-and-its-telemetry) +- [Validate](#validate) + +Follow the [shared WebAssembly client setup](wasm-client.md) using the `--hosted` template. +Do not add the standalone configuration initializer: the server supplies those values +through `WithBrowserOptions`. + +## Server: YARP proxy + browser config push + +Check the server for YARP registration against `ReverseProxy` configuration, +`AddServiceDiscoveryDestinationResolver()`, `MapReverseProxy()`, and +`WithBrowserOptions()` on the Razor component endpoint chain. Follow any existing +helper calls to check their implementation. Keep working setup and add only the missing +package references or helper calls shown below. + +**Server `.csproj`** — reference `ServiceDefaults`, add the YARP packages, and keep the template's `Components.WebAssembly.Server` reference: + +```xml + + + + + + + + + + +``` + +**Server `Program.cs`** — add missing service defaults and call the helpers below. Keep the +existing middleware and render-mode registrations. Place `AddAspireBlazorProxy()` before +`Build()`, `MapAspireBlazorProxy()` after `Build()`, and `WithAspireBrowserConfiguration()` +at the end of the existing Razor component endpoint chain: + +```csharp +using WebApp; +using WebApp.Components; + +var builder = WebApplication.CreateBuilder(args); + +// Aspire service defaults: OpenTelemetry, health checks, service discovery, resilience. +builder.AddServiceDefaults(); + +builder.Services.AddRazorComponents() + .AddInteractiveServerComponents() + .AddInteractiveWebAssemblyComponents(); + +builder.AddAspireBlazorProxy(); + +var app = builder.Build(); + +app.MapDefaultEndpoints(); // /health and /alive + +// Keep existing error handling, HTTPS, and antiforgery middleware here. +app.MapStaticAssets(); + +app.MapAspireBlazorProxy(); + +app.MapRazorComponents() + .AddInteractiveServerRenderMode() + .AddInteractiveWebAssemblyRenderMode() + .AddAdditionalAssemblies(typeof(WebApp.Client._Imports).Assembly) + .WithAspireBrowserConfiguration(app.Configuration); + +app.Run(); +``` + +**Server `AspireBlazorExtensions.cs`** — add this file next to the server's `Program.cs`. +Replace `WebApp` with the server project's namespace. Keep proxy setup and configuration +parsing in this file, not in `Program.cs`. + +```csharp +using System.Text.Json; +using Microsoft.AspNetCore.Builder; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; + +namespace WebApp; + +internal static class AspireBlazorExtensions +{ + public static void AddAspireBlazorProxy(this WebApplicationBuilder builder) + { + var reverseProxy = builder.Configuration.GetSection("ReverseProxy"); + if (reverseProxy.Exists()) + { + builder.Services.AddReverseProxy() + .LoadFromConfig(reverseProxy) + .AddServiceDiscoveryDestinationResolver(); + } + } + + public static void MapAspireBlazorProxy(this WebApplication app) + { + if (app.Configuration.GetSection("ReverseProxy").Exists()) + { + app.MapReverseProxy(); + } + } + + public static RazorComponentsEndpointConventionBuilder WithAspireBrowserConfiguration( + this RazorComponentsEndpointConventionBuilder endpoints, IConfiguration configuration) + { + var environment = ParseBrowserEnvironment(configuration["Client:ConfigResponse"]); + return endpoints.WithBrowserOptions(options => + { + foreach (var (key, value) in environment) + { + options.InteractiveWebAssembly.EnvironmentVariables[key] = value; + } + }); + } + + private static IReadOnlyDictionary ParseBrowserEnvironment(string? configResponse) + { + var result = new Dictionary(StringComparer.Ordinal); + if (string.IsNullOrEmpty(configResponse)) + { + return result; + } + + using var document = JsonDocument.Parse(configResponse); + if (document.RootElement.TryGetProperty("webAssembly", out var webAssembly) && + webAssembly.TryGetProperty("environment", out var environment)) + { + const string originToken = "__ORIGIN__"; + foreach (var item in environment.EnumerateObject()) + { + if (item.NameEquals("OTEL_EXPORTER_OTLP_HEADERS")) + { + continue; + } + + var value = item.Value.GetString() + ?? throw new InvalidOperationException($"Browser setting '{item.Name}' must be a string."); + result[item.Name] = value.StartsWith(originToken + "/", StringComparison.Ordinal) + ? value[originToken.Length..] + : value; + } + } + + return result; + } +} +``` + +`WithBrowserOptions` (namespace `Microsoft.AspNetCore.Builder`) takes an `Action`. +The .NET 11 RTM member is `InteractiveWebAssembly.EnvironmentVariables`; only the incoming +Aspire JSON still uses `webAssembly.environment`. Don't add the obsolete +`UseWebAssemblyDebugging()` middleware or `inspectUri` settings from older templates. + +Do not pass dashboard headers or secrets to the client. + +## The AppHost: proxy the API and its telemetry + +Check the AppHost for the server project registration and `ProxyBlazorTelemetry()`. +For each AppHost-managed API the app calls, check `WithReference(api)` for server calls +and `ProxyBlazorService(api)` for browser calls. Add only the missing registrations or +calls; skip API wiring when there is no managed API. + +Use the existing project or file-based AppHost with the +[Aspire 17 package references or directives](standalone-gateway.md#the-apphost-wasm-project--gateway). +Register the **server** project, not its `.Client` project. Resolve paths from the AppHost +directory, and suppress `ASPIREBLAZOR001` only around the experimental proxy calls: + +```csharp +using Aspire.Hosting; + +var builder = DistributedApplication.CreateBuilder(args); + +var apiService = builder.AddDotnetProject("your-api", "../ApiService/ApiService.csproj"); + +var webApp = builder.AddDotnetProject("webapp", "../WebApp/WebApp/WebApp.csproj") + .WithExternalHttpEndpoints() + .WithReference(apiService); // server-side service discovery (prerender) + +#pragma warning disable ASPIREBLAZOR001 +webApp.ProxyBlazorService(apiService) + .ProxyBlazorTelemetry(); +#pragma warning restore ASPIREBLAZOR001 + +builder.Build().Run(); +``` + +`ProxyBlazorService` and `ProxyBlazorTelemetry` emit `ReverseProxy` config and a +`Client:ConfigResponse` JSON payload. Aspire resolves a browser-facing API route in local runs; +open the AppHost-advertised HTTPS URL for same-origin requests. If you use an alias or +forwarded URL, verify the resolved API origin matches the browser origin before claiming +the route is same-origin. + +Add a health probe and startup wait only if the selected API profile serves the readiness +endpoint. The default `/health` endpoint from ServiceDefaults is development-only. + +The browser's OTLP endpoint is relative (`/_otlp`). Deliver only the browser configuration via +`WithBrowserOptions`; YARP forwards requests to their destinations. If there is no API, omit its +registration, `WithReference`, and `ProxyBlazorService`, but keep +`webApp.ProxyBlazorTelemetry()` when browser telemetry is wanted. + +## Validate + +Run the [shared validation steps](../SKILL.md#step-5--run-the-apphost-and-verify-each-signal). +Open the AppHost-advertised HTTPS URL without adding a gateway sub-path. + +- **Server API discovery:** If configured, open a server-rendered page that calls the + API. Confirm the data renders and the trace contains server and API spans. +- **Browser:** Open a route that actually runs WebAssembly. Trigger an interaction, + then look for POSTs to `/_otlp/v1/logs`, `/_otlp/v1/traces`, and `/_otlp/v1/metrics`. + Use `webapp (client)` as the telemetry source for a server resource named `webapp`. +- **Browser API discovery:** If configured, confirm a successful same-origin request + under `/_api/your-api/` and a trace containing browser, server, and API spans. diff --git a/catalog/Frameworks/Official-DotNet-Blazor/skills/add-aspire-to-blazor/references/standalone-gateway.md b/catalog/Frameworks/Official-DotNet-Blazor/skills/add-aspire-to-blazor/references/standalone-gateway.md new file mode 100644 index 00000000..eb084825 --- /dev/null +++ b/catalog/Frameworks/Official-DotNet-Blazor/skills/add-aspire-to-blazor/references/standalone-gateway.md @@ -0,0 +1,123 @@ +# Standalone Blazor WebAssembly + Blazor Gateway + +Use these steps for a standalone Blazor WebAssembly app. Replace the example paths and +resource names with the solution's values. Add only missing wiring. + +## Contents +- [Shared WebAssembly client setup](wasm-client.md) +- [Replace the dev server with the gateway](#replace-the-dev-server-with-the-gateway) +- [Set the base path](#set-the-base-path) +- [The AppHost: WASM project + gateway](#the-apphost-wasm-project--gateway) +- [Validate](#validate) + +Follow the [shared WebAssembly client setup](wasm-client.md) using the standalone template. +Keep its JS initializer: it fetches `_blazor/_configuration` relative to the app's base path. + +## Replace the dev server with the gateway + +Check the WebAssembly project for `Microsoft.AspNetCore.Components.WebAssembly.DevServer` +and `Microsoft.AspNetCore.Components.Gateway`. Remove the dev server reference if present. +Add the Gateway package if missing; match its version to the app's ASP.NET Core packages. + +```xml + + + +``` + +## Set the base path + +Compare the `` in `wwwroot/index.html` with the WASM resource's AppHost sub-path. +If they match, leave it unchanged. If it is `/` or points to another path, set it to the +resource sub-path, including the trailing slash. For a resource named `app`, use: + +```html + +``` + +## The AppHost: WASM project + gateway + +Check the AppHost for the WASM app registration, the gateway registration, and the +`WithBlazorClientApp` link. For each AppHost-managed API the WASM app calls, check its +`WithReference` call. Keep working registrations; add only missing resources or links. + +Keep the existing AppHost format. Resolve project paths from its directory. Use +`AddDotnetProjectBlazorGateway` for new gateway registrations. + +**Project AppHost** — add any missing package references. Keep the project's target framework: + +```xml + + + Exe + net11.0 + + + + + + +``` + +From the solution root, add the Blazor hosting package: + +```shell +dotnet add "<>" package Aspire.Hosting.Blazor --prerelease +``` + +Confirm the resolved package matches the AppHost's Aspire version. If it does not, select a +compatible version explicitly. + +**File-based AppHost** — put the package directives at the top of `apphost.cs` instead. +Replace `<>` with a compatible prerelease package version: + +```csharp +#:package Aspire.Hosting.AppHost@17.0.0 +#:package Aspire.Hosting.Dotnet@17.0.0 +#:package Aspire.Hosting.Blazor@<> +``` + +Register the app and gateway. Omit the API registration and `WithReference` if the app +calls no AppHost-managed APIs. Before enabling the gateway process's HTTP/protobuf +exporter, check that the dashboard provides an HTTP receiver: + +```csharp +using Aspire.Hosting; + +var builder = DistributedApplication.CreateBuilder(args); + +var apiService = builder.AddDotnetProject("your-api", "../ApiService/ApiService.csproj"); + +#pragma warning disable ASPIREBLAZOR001 +var blazorApp = builder.AddBlazorWasmApp("app", "../Client/Client.csproj") + .WithReference(apiService); + +builder.AddDotnetProjectBlazorGateway("gateway") + .WithExternalHttpEndpoints() + .WithOtlpExporter(OtlpProtocol.HttpProtobuf) + .WithBlazorClientApp(blazorApp); +#pragma warning restore ASPIREBLAZOR001 + +builder.Build().Run(); +``` + +## Validate + +Run the [shared validation steps](../SKILL.md#step-5--run-the-apphost-and-verify-each-signal). +After `aspire describe`, use the gateway's HTTPS port and the WASM resource name: + +```shell +curl "https://localhost:<>/<>/_blazor/_configuration" +``` + +- **Configuration:** Check that `OTEL_EXPORTER_OTLP_ENDPOINT` is a same-origin path + such as `/app/_otlp`, that discovery keys exist for managed APIs only when configured, + and that the response contains no dashboard credentials. +- **Browser:** Open the gateway URL at the resource sub-path (for example `/app/`). + Check one existing deep link and confirm that framework assets load under that prefix. + Look for POSTs to `/app/_otlp/v1/logs`, `/app/_otlp/v1/traces`, and `/app/_otlp/v1/metrics`. + Use the WASM resource name as the telemetry source. +- **Managed API:** Check that the network request succeeds under `/app/_api/your-api/` + and that the trace contains WASM client, gateway, and API spans. Verify protected + routes reject unauthorized requests before exposing them. Skip this check if no + managed API is configured. diff --git a/catalog/Frameworks/Official-DotNet-Blazor/skills/add-aspire-to-blazor/references/troubleshooting.md b/catalog/Frameworks/Official-DotNet-Blazor/skills/add-aspire-to-blazor/references/troubleshooting.md new file mode 100644 index 00000000..06c7c7e1 --- /dev/null +++ b/catalog/Frameworks/Official-DotNet-Blazor/skills/add-aspire-to-blazor/references/troubleshooting.md @@ -0,0 +1,28 @@ +# Troubleshoot Blazor Aspire integration + +| Symptom | Check and act | +|---|---| +| Standalone page is blank or assets return 404 | Compare `wwwroot/index.html`'s `` with the WASM resource sub-path. If they differ, set the base to the resource sub-path, including its trailing slash. | +| AppHost cannot resolve a `Projects.*` type | For new registrations, use the path-based `AddDotnetProject` or `AddBlazorWasmApp` API. Keep working legacy registrations. | +| Gateway fails to acquire its CLI | Check that the configured NuGet sources provide the `Microsoft.AspNetCore.Components.Gateway.Cli` version requested by Aspire. | +| Managed API request goes cross-origin | Check that the client uses the API resource name, not the backend host and port. Verify that the gateway or hosted proxy resolves the discovery entry to the browser's origin. If using a hostname alias, compare it with the AppHost-advertised HTTPS origin. | +| Browser metrics are missing but logs and traces appear | Keep the same page open through one export interval. Check whether a metrics POST was accepted, then select the browser source in the dashboard's **Metrics** view. | +| Hosting telemetry grows while the app is idle | Confirm the OTLP proxy produces a feedback loop in traces. Exclude only the confirmed telemetry ingress and dashboard destination from instrumentation. Compose existing filters; do not drop all `/v1/` requests or weaken HTTPS. | + +## Missing browser OTLP endpoint + +Check `WithBlazorClientApp` on the standalone path or `ProxyBlazorTelemetry()` on the +hosted path. Check whether the proxy can resolve `otlp-http` on the dashboard resource. +Do not use the dashboard's gRPC endpoint for browser export or add `WithOtlpExporter` +to create the receiver; it configures the gateway process's own exporter. + +If the HTTP receiver is missing, add `ASPIRE_DASHBOARD_OTLP_HTTP_ENDPOINT_URL` to +`environmentVariables` in the active profile in `Properties/launchSettings.json` +for a project-based AppHost or `apphost.run.json` for a single-file AppHost. +Keep the existing gRPC setting. Use the same scheme and a distinct port. The AppHost +also recognizes `DOTNET_DASHBOARD_OTLP_HTTP_ENDPOINT_URL` as a fallback. For an +external dashboard, use its configured HTTP/protobuf endpoint. + +Restart the AppHost and verify the browser receives a same-origin OTLP path and +can export through it. Keep dashboard addresses, credentials, and login tokens +out of browser configuration and reports. diff --git a/catalog/Frameworks/Official-DotNet-Blazor/skills/add-aspire-to-blazor/references/wasm-client.md b/catalog/Frameworks/Official-DotNet-Blazor/skills/add-aspire-to-blazor/references/wasm-client.md new file mode 100644 index 00000000..b079fad9 --- /dev/null +++ b/catalog/Frameworks/Official-DotNet-Blazor/skills/add-aspire-to-blazor/references/wasm-client.md @@ -0,0 +1,79 @@ +# Configure the WebAssembly client + +Use this reference for standalone WebAssembly and for the WebAssembly client of a +Blazor Web App. Skip it for server-only apps. + +## Add client service defaults + +Check the client project's references and other solution projects for a compatible library +that provides `AddBlazorClientServiceDefaults()`. If you find one, reuse it and add the +project reference only if missing. Check the client's `Program.cs` and add only the +missing startup calls in the order shown below. + +If no compatible library exists, run `dotnet new blazorwasm-servicedefaults --help` to check the template. +From the solution root, replace the path placeholders and run **one** template command: + +```shell +# Standalone: include the JS initializer that fetches configuration from the gateway. +dotnet new blazorwasm-servicedefaults -o "<>" + +# Hosted: omit that initializer; the server supplies configuration with WithBrowserOptions. +dotnet new blazorwasm-servicedefaults --hosted -o "<>" +``` + +If the client does not yet reference the library, run this from the solution root: + +```shell +dotnet add "<>" reference "<>" +``` + +In the client's `Program.cs`, add any missing calls before building the WebAssembly host: + +```csharp +using Microsoft.Extensions.Hosting; + +// After creating the WebAssemblyHostBuilder: +builder.Configuration.AddEnvironmentVariables(); +builder.AddBlazorClientServiceDefaults(); +``` + +Keep the generated telemetry and discovery setup. Let the WebAssembly host start its +registered hosted services; do not resolve telemetry providers manually. + +## Register clients for AppHost-managed APIs + +Skip this section if there are no AppHost-managed APIs. Keep existing registrations and +access policies for third-party APIs. For each managed API, check the named or typed client +registration. If it uses the correct resource name and transport policy, leave it unchanged. +If it uses a literal backend address, update that registration rather than adding a second one. + +For a new named client, put the registration in `ApiClientExtensions.cs` in the WebAssembly +project. Use the actual project namespace and AppHost resource name: + +```csharp +using System; +using Microsoft.Extensions.DependencyInjection; + +namespace Client; + +public static class ApiClientExtensions +{ + public static void AddAppApiClients(this IServiceCollection services) + { + services.AddHttpClient("your-api", client => + { + client.BaseAddress = new Uri("https+http://your-api"); + }); + } +} +``` + +Use the `https` scheme instead if the API requires HTTPS-only discovery. Import the helper's +namespace and call `builder.Services.AddAppApiClients()` in the client's `Program.cs`. +If the same component calls the API on the server, call the same helper from the hosted +server's `Program.cs` using its existing reference to the WebAssembly project. Do not have +the server call `AddBlazorClientServiceDefaults()`; it uses server service defaults. + +Inject `IHttpClientFactory` and call `CreateClient("your-api")` in either runtime. +The AppHost and the browser host supply the address: the server resolves the API resource +directly, while the browser resolves the same resource name to a same-origin proxy route. diff --git a/catalog/Frameworks/Official-DotNet-Blazor/skills/create-blazor-project/SKILL.md b/catalog/Frameworks/Official-DotNet-Blazor/skills/create-blazor-project/SKILL.md index 71b25e22..98c9d819 100644 --- a/catalog/Frameworks/Official-DotNet-Blazor/skills/create-blazor-project/SKILL.md +++ b/catalog/Frameworks/Official-DotNet-Blazor/skills/create-blazor-project/SKILL.md @@ -7,7 +7,8 @@ description: > starting a new web site, choosing render modes (Static SSR, Interactive Server, Interactive WebAssembly, Auto), running dotnet new blazor with the right options, setting up initial project structure. - DO NOT USE FOR: adding features to existing projects, changing how an existing + DO NOT USE FOR: adding Aspire to an existing app (use add-aspire-to-blazor), + adding features to existing projects, changing how an existing app renders, or component authoring (use author-component). --- diff --git a/catalog/Frameworks/Official-DotNet-Blazor/skills/fetch-and-send-data/SKILL.md b/catalog/Frameworks/Official-DotNet-Blazor/skills/fetch-and-send-data/SKILL.md index cfb9ea36..dd66a6dc 100644 --- a/catalog/Frameworks/Official-DotNet-Blazor/skills/fetch-and-send-data/SKILL.md +++ b/catalog/Frameworks/Official-DotNet-Blazor/skills/fetch-and-send-data/SKILL.md @@ -1,7 +1,17 @@ --- license: MIT name: fetch-and-send-data -description: Call APIs, load data into components, and handle the async lifecycle in Blazor. USE FOR fetching data from a backend, submitting data to an API, displaying loading/error states, registering HttpClient, building service abstractions for Auto/WebAssembly render modes. DO NOT USE for form validation (see collect-user-input), prerendering persistence (see support-prerendering), or project scaffolding (see create-blazor-project). +description: >- + Implement API calls and async request lifecycles in Blazor components. + DO NOT USE FOR: EditForm field validation, ValidationMessageStore, or showing + and clearing field errors such as duplicate email (use collect-user-input), + even when an existing API or submission handler supplies the error. + USE FOR: fetching or submitting data when the request itself needs work, + cancellation, loading and retry states, HttpClient registration, and shared + API client abstractions for server and WebAssembly execution. + Also exclude Aspire orchestration, service discovery, same-origin proxying, + and browser telemetry integration (use add-aspire-to-blazor), prerendering + persistence (use support-prerendering), and scaffolding (use create-blazor-project). --- # Fetch and Send Data diff --git a/catalog/Platform/Official-DotNet-Dotnet11/skills/process-api-net11/manifest.json b/catalog/Platform/Official-DotNet-Dotnet11/skills/process-api-net11/manifest.json index 5e6565da..8bf93c2b 100644 --- a/catalog/Platform/Official-DotNet-Dotnet11/skills/process-api-net11/manifest.json +++ b/catalog/Platform/Official-DotNet-Dotnet11/skills/process-api-net11/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.3", + "version": "0.1.4", "category": "Core", "compatibility": "Requires a .NET repository or solution." } diff --git a/catalog/Platform/Official-DotNet-Dotnet11/skills/system-text-json-net11/manifest.json b/catalog/Platform/Official-DotNet-Dotnet11/skills/system-text-json-net11/manifest.json index 5e6565da..8bf93c2b 100644 --- a/catalog/Platform/Official-DotNet-Dotnet11/skills/system-text-json-net11/manifest.json +++ b/catalog/Platform/Official-DotNet-Dotnet11/skills/system-text-json-net11/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.3", + "version": "0.1.4", "category": "Core", "compatibility": "Requires a .NET repository or solution." } diff --git a/catalog/Platform/Official-DotNet/skills/csharp-expert/manifest.json b/catalog/Platform/Official-DotNet/skills/csharp-expert/manifest.json index 4eb3061c..6d2a9930 100644 --- a/catalog/Platform/Official-DotNet/skills/csharp-expert/manifest.json +++ b/catalog/Platform/Official-DotNet/skills/csharp-expert/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.2.6", + "version": "0.2.7", "category": "Core", "compatibility": "Requires a .NET repository or solution." } diff --git a/catalog/Platform/Official-DotNet/skills/csharp-expert/references/dotnet-skills-marketplace.md b/catalog/Platform/Official-DotNet/skills/csharp-expert/references/dotnet-skills-marketplace.md index 5a737332..a7e40cb7 100644 --- a/catalog/Platform/Official-DotNet/skills/csharp-expert/references/dotnet-skills-marketplace.md +++ b/catalog/Platform/Official-DotNet/skills/csharp-expert/references/dotnet-skills-marketplace.md @@ -48,7 +48,7 @@ Update an installed plugin with: - `dotnet-aspnetcore`: ASP.NET Core APIs, endpoints, middleware, or Blazor Server to Blazor Web App conversion. - `dotnet-blazor`: Blazor projects, components, forms, auth, interactivity, prerendering, data - flow, or JS interop. + flow, JS interop, or Aspire integration. - `dotnet-winforms`: Windows Forms project setup, UI, binding, accessibility, or modernization. - `dotnet11`: .NET 11-specific APIs and language features. @@ -72,6 +72,7 @@ or installing a marketplace route. | Author a reusable Blazor component with parameters, content, and callbacks | `author-component` | `dotnet-blazor` | | Collect and validate user input in a Blazor form | `collect-user-input` | `dotnet-blazor` | | Create a Blazor project with framework-specific defaults | `create-blazor-project` | `dotnet-blazor` | +| Add or complete Aspire integration for an existing Blazor app | `add-aspire-to-blazor` | `dotnet-blazor` | | Discover or instantiate a general `dotnet new` template | `template-discovery` or `template-instantiation` | `dotnet-template-engine` | | Repair MAUI XAML binding and change notification | `maui-data-binding` | `dotnet-maui` | | Create, modify, or debug a Windows Forms application | `winforms-expert` | `dotnet-winforms` | diff --git a/catalog/Platform/Official-DotNet/skills/csharp-refactoring/manifest.json b/catalog/Platform/Official-DotNet/skills/csharp-refactoring/manifest.json index 3b35d858..ee113d7d 100644 --- a/catalog/Platform/Official-DotNet/skills/csharp-refactoring/manifest.json +++ b/catalog/Platform/Official-DotNet/skills/csharp-refactoring/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.2.6", + "version": "0.2.7", "category": "Code Quality", "compatibility": "Requires a .NET repository or solution." } diff --git a/catalog/Platform/Official-DotNet/skills/dotnet-breaking-changes/manifest.json b/catalog/Platform/Official-DotNet/skills/dotnet-breaking-changes/manifest.json index 4eb3061c..6d2a9930 100644 --- a/catalog/Platform/Official-DotNet/skills/dotnet-breaking-changes/manifest.json +++ b/catalog/Platform/Official-DotNet/skills/dotnet-breaking-changes/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.2.6", + "version": "0.2.7", "category": "Core", "compatibility": "Requires a .NET repository or solution." } diff --git a/catalog/Platform/Official-DotNet/skills/msbuild/manifest.json b/catalog/Platform/Official-DotNet/skills/msbuild/manifest.json index 4eb3061c..6d2a9930 100644 --- a/catalog/Platform/Official-DotNet/skills/msbuild/manifest.json +++ b/catalog/Platform/Official-DotNet/skills/msbuild/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.2.6", + "version": "0.2.7", "category": "Core", "compatibility": "Requires a .NET repository or solution." } diff --git a/catalog/Platform/Official-DotNet/skills/setup-local-sdk/manifest.json b/catalog/Platform/Official-DotNet/skills/setup-local-sdk/manifest.json index 4eb3061c..6d2a9930 100644 --- a/catalog/Platform/Official-DotNet/skills/setup-local-sdk/manifest.json +++ b/catalog/Platform/Official-DotNet/skills/setup-local-sdk/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.2.6", + "version": "0.2.7", "category": "Core", "compatibility": "Requires a .NET repository or solution." } diff --git a/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-mstest-v1v2-to-v3/manifest.json b/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-mstest-v1v2-to-v3/manifest.json index af422fcd..93f75510 100644 --- a/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-mstest-v1v2-to-v3/manifest.json +++ b/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-mstest-v1v2-to-v3/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Migration", "compatibility": "Requires a .NET test project being migrated between frameworks, framework versions, or test platforms.", "package_prefix": "MSTest" diff --git a/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-mstest-v3-to-v4/manifest.json b/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-mstest-v3-to-v4/manifest.json index af422fcd..93f75510 100644 --- a/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-mstest-v3-to-v4/manifest.json +++ b/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-mstest-v3-to-v4/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Migration", "compatibility": "Requires a .NET test project being migrated between frameworks, framework versions, or test platforms.", "package_prefix": "MSTest" diff --git a/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-nunit-to-mstest/manifest.json b/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-nunit-to-mstest/manifest.json index 1954605b..87b20128 100644 --- a/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-nunit-to-mstest/manifest.json +++ b/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-nunit-to-mstest/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Migration", "compatibility": "Requires a .NET test project being migrated between frameworks, framework versions, or test platforms." } diff --git a/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-vstest-to-mtp/manifest.json b/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-vstest-to-mtp/manifest.json index 1954605b..87b20128 100644 --- a/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-vstest-to-mtp/manifest.json +++ b/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-vstest-to-mtp/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Migration", "compatibility": "Requires a .NET test project being migrated between frameworks, framework versions, or test platforms." } diff --git a/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-xunit-to-mstest/manifest.json b/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-xunit-to-mstest/manifest.json index 1954605b..87b20128 100644 --- a/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-xunit-to-mstest/manifest.json +++ b/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-xunit-to-mstest/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Migration", "compatibility": "Requires a .NET test project being migrated between frameworks, framework versions, or test platforms." } diff --git a/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-xunit-to-xunit-v3/manifest.json b/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-xunit-to-xunit-v3/manifest.json index 2e3ebf8a..33739ac3 100644 --- a/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-xunit-to-xunit-v3/manifest.json +++ b/catalog/Testing/Official-DotNet-Test-Migration/skills/migrate-xunit-to-xunit-v3/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Migration", "compatibility": "Requires a .NET test project being migrated between frameworks, framework versions, or test platforms.", "packages": [ diff --git a/catalog/Testing/Official-DotNet-Test/skills/assertion-quality/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/assertion-quality/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/assertion-quality/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/assertion-quality/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/code-testing-agent/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/code-testing-agent/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/code-testing-agent/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/code-testing-agent/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/code-testing-extensions/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/code-testing-extensions/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/code-testing-extensions/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/code-testing-extensions/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/code-testing/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/code-testing/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/code-testing/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/code-testing/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/coverage-analysis/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/coverage-analysis/manifest.json index 62ff5f32..c4d96eb2 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/coverage-analysis/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/coverage-analysis/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution.", "packages": [ diff --git a/catalog/Testing/Official-DotNet-Test/skills/crap-score/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/crap-score/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/crap-score/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/crap-score/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/detect-static-dependencies/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/detect-static-dependencies/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/detect-static-dependencies/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/detect-static-dependencies/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/filter-syntax/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/filter-syntax/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/filter-syntax/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/filter-syntax/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/find-untested-sources/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/find-untested-sources/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/find-untested-sources/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/find-untested-sources/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/generate-testability-wrappers/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/generate-testability-wrappers/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/generate-testability-wrappers/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/generate-testability-wrappers/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/grade-tests/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/grade-tests/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/grade-tests/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/grade-tests/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/migrate-static-to-wrapper/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/migrate-static-to-wrapper/manifest.json index 69574c40..2c842f33 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/migrate-static-to-wrapper/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/migrate-static-to-wrapper/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Migration", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/mtp-hot-reload/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/mtp-hot-reload/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/mtp-hot-reload/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/mtp-hot-reload/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/platform-detection/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/platform-detection/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/platform-detection/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/platform-detection/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/run-tests/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/run-tests/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/run-tests/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/run-tests/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/scaffold-dotnet-test-project/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/scaffold-dotnet-test-project/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/scaffold-dotnet-test-project/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/scaffold-dotnet-test-project/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/test-analysis-extensions/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/test-analysis-extensions/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/test-analysis-extensions/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/test-analysis-extensions/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/test-anti-patterns/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/test-anti-patterns/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/test-anti-patterns/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/test-anti-patterns/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/test-gap-analysis/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/test-gap-analysis/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/test-gap-analysis/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/test-gap-analysis/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/test-smell-detection/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/test-smell-detection/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/test-smell-detection/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/test-smell-detection/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/test-tagging/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/test-tagging/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/test-tagging/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/test-tagging/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/test-value-evidence/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/test-value-evidence/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/test-value-evidence/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/test-value-evidence/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/testability-obstacle/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/testability-obstacle/manifest.json index c2f60424..3640f859 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/testability-obstacle/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/testability-obstacle/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution." } diff --git a/catalog/Testing/Official-DotNet-Test/skills/writing-mstest-tests/manifest.json b/catalog/Testing/Official-DotNet-Test/skills/writing-mstest-tests/manifest.json index d8ec7313..46ea2b22 100644 --- a/catalog/Testing/Official-DotNet-Test/skills/writing-mstest-tests/manifest.json +++ b/catalog/Testing/Official-DotNet-Test/skills/writing-mstest-tests/manifest.json @@ -1,5 +1,5 @@ { - "version": "1.0.1", + "version": "1.0.2", "category": "Testing", "compatibility": "Requires a .NET test project or solution.", "package_prefix": "MSTest" diff --git a/catalog/Tools/Official-DotNet-Agentic-Workflows/skills/agentic-workflows/manifest.json b/catalog/Tools/Official-DotNet-Agentic-Workflows/skills/agentic-workflows/manifest.json index e0d76ba5..6bc9f8cd 100644 --- a/catalog/Tools/Official-DotNet-Agentic-Workflows/skills/agentic-workflows/manifest.json +++ b/catalog/Tools/Official-DotNet-Agentic-Workflows/skills/agentic-workflows/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.2.6", + "version": "0.2.7", "category": "Governance", "compatibility": "Requires a GitHub repository using gh-aw and access to the github/gh-aw upstream prompts." } diff --git a/catalog/Tools/Official-DotNet-Authoring-Github-Workflows/skills/authoring-github-workflows/manifest.json b/catalog/Tools/Official-DotNet-Authoring-Github-Workflows/skills/authoring-github-workflows/manifest.json index ce757930..d84c5895 100644 --- a/catalog/Tools/Official-DotNet-Authoring-Github-Workflows/skills/authoring-github-workflows/manifest.json +++ b/catalog/Tools/Official-DotNet-Authoring-Github-Workflows/skills/authoring-github-workflows/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.2.6", + "version": "0.2.7", "category": "Governance", "compatibility": "Requires a GitHub Actions repository and actionlint for local validation." } diff --git a/catalog/Tools/Official-DotNet-Create-Custom-Agent/skills/create-custom-agent/manifest.json b/catalog/Tools/Official-DotNet-Create-Custom-Agent/skills/create-custom-agent/manifest.json index 2ede130a..70149c37 100644 --- a/catalog/Tools/Official-DotNet-Create-Custom-Agent/skills/create-custom-agent/manifest.json +++ b/catalog/Tools/Official-DotNet-Create-Custom-Agent/skills/create-custom-agent/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.2.6", + "version": "0.2.7", "category": "AI", "compatibility": "Requires VS Code or GitHub Copilot custom-agent support." } diff --git a/catalog/Tools/Official-DotNet-Create-Skill-Test/skills/create-skill-test/manifest.json b/catalog/Tools/Official-DotNet-Create-Skill-Test/skills/create-skill-test/manifest.json index df507828..f1abb2b1 100644 --- a/catalog/Tools/Official-DotNet-Create-Skill-Test/skills/create-skill-test/manifest.json +++ b/catalog/Tools/Official-DotNet-Create-Skill-Test/skills/create-skill-test/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.2.6", + "version": "0.2.7", "category": "Governance", "compatibility": "Requires a dotnet/skills checkout and its skill-validator and evaluation tooling." } diff --git a/catalog/Tools/Official-DotNet-Create-Skill/skills/create-skill/manifest.json b/catalog/Tools/Official-DotNet-Create-Skill/skills/create-skill/manifest.json index df507828..f1abb2b1 100644 --- a/catalog/Tools/Official-DotNet-Create-Skill/skills/create-skill/manifest.json +++ b/catalog/Tools/Official-DotNet-Create-Skill/skills/create-skill/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.2.6", + "version": "0.2.7", "category": "Governance", "compatibility": "Requires a dotnet/skills checkout and its skill-validator and evaluation tooling." } diff --git a/catalog/Tools/Official-DotNet-Improve-Skill-Quality/skills/improve-skill-quality/manifest.json b/catalog/Tools/Official-DotNet-Improve-Skill-Quality/skills/improve-skill-quality/manifest.json index df507828..f1abb2b1 100644 --- a/catalog/Tools/Official-DotNet-Improve-Skill-Quality/skills/improve-skill-quality/manifest.json +++ b/catalog/Tools/Official-DotNet-Improve-Skill-Quality/skills/improve-skill-quality/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.2.6", + "version": "0.2.7", "category": "Governance", "compatibility": "Requires a dotnet/skills checkout and its skill-validator and evaluation tooling." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/binlog-failure-analysis/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/binlog-failure-analysis/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/binlog-failure-analysis/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/binlog-failure-analysis/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/binlog-generation/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/binlog-generation/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/binlog-generation/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/binlog-generation/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/build-parallelism/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/build-parallelism/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/build-parallelism/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/build-parallelism/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/build-perf-baseline/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/build-perf-baseline/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/build-perf-baseline/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/build-perf-baseline/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/build-perf-diagnostics/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/build-perf-diagnostics/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/build-perf-diagnostics/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/build-perf-diagnostics/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/check-bin-obj-clash/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/check-bin-obj-clash/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/check-bin-obj-clash/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/check-bin-obj-clash/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/copy-to-output-directory/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/copy-to-output-directory/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/copy-to-output-directory/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/copy-to-output-directory/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/directory-build-organization/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/directory-build-organization/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/directory-build-organization/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/directory-build-organization/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/eliminate-redundant-restores/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/eliminate-redundant-restores/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/eliminate-redundant-restores/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/eliminate-redundant-restores/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/eval-performance/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/eval-performance/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/eval-performance/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/eval-performance/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/extension-points/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/extension-points/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/extension-points/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/extension-points/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/find-repeated-work-within-one-build/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/find-repeated-work-within-one-build/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/find-repeated-work-within-one-build/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/find-repeated-work-within-one-build/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/including-generated-files/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/including-generated-files/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/including-generated-files/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/including-generated-files/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/incremental-build/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/incremental-build/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/incremental-build/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/incremental-build/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/item-management/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/item-management/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/item-management/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/item-management/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/msbuild-antipatterns/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/msbuild-antipatterns/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/msbuild-antipatterns/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/msbuild-antipatterns/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/msbuild-modernization/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/msbuild-modernization/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/msbuild-modernization/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/msbuild-modernization/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/property-patterns/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/property-patterns/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/property-patterns/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/property-patterns/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/resolve-project-references/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/resolve-project-references/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/resolve-project-references/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/resolve-project-references/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/target-authoring/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/target-authoring/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/target-authoring/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/target-authoring/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/catalog/Tools/Official-DotNet-MSBuild/skills/troubleshoot-binlog-mcp/manifest.json b/catalog/Tools/Official-DotNet-MSBuild/skills/troubleshoot-binlog-mcp/manifest.json index 2009f02f..8d49b0a0 100644 --- a/catalog/Tools/Official-DotNet-MSBuild/skills/troubleshoot-binlog-mcp/manifest.json +++ b/catalog/Tools/Official-DotNet-MSBuild/skills/troubleshoot-binlog-mcp/manifest.json @@ -1,5 +1,5 @@ { - "version": "0.1.12", + "version": "0.1.13", "category": "Core", "compatibility": "Requires a .NET repository with MSBuild project or solution files." } diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/add-aspire-to-blazor/SKILL.md b/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/add-aspire-to-blazor/SKILL.md new file mode 100644 index 00000000..ad845e3d --- /dev/null +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/add-aspire-to-blazor/SKILL.md @@ -0,0 +1,195 @@ +--- +license: MIT +name: add-aspire-to-blazor +description: >- + Add or complete .NET Aspire integration for an existing browser-hosted Blazor + WebAssembly app or ASP.NET Core Blazor Web App. DO NOT USE FOR: .NET MAUI, + Blazor Hybrid, BlazorWebView, or native-process telemetry, even if the request + mentions Aspire or the Aspire dashboard. USE FOR: "add Aspire to my Blazor app", + wiring a standalone WebAssembly gateway or a Blazor Web App into an AppHost, + configuring service discovery and same-origin API proxying, or exporting + OpenTelemetry from these web apps. Also exclude creating a new Blazor app + (use create-blazor-project), general HTTP data loading (use fetch-and-send-data), + non-Blazor apps, + Azure/Kubernetes deployment, or AppHost databases/containers/messaging unrelated to + the Blazor front end. +compatibility: Requires .NET 11.0 or later and Aspire 17.0 or later. The browser recipes require Aspire.Hosting.Blazor. +--- + +# Add .NET Aspire to a Blazor App + +Connect an existing Blazor front end to backend services through **Aspire service discovery** and stream its telemetry — including **browser telemetry** from a WebAssembly client — to the **Aspire dashboard**. + +## Prerequisites + +Require **.NET 11.0 or later** for the Blazor app and **Aspire 17.0 or later**. From the +solution directory, run `dotnet --version` and `aspire --version`. Inspect `global.json`, +the Blazor target frameworks, and the AppHost package versions. Check the version and +runtime required by the existing AppHost separately from the Blazor app's target. +Preserve working versions and package sources. If the project falls below the minimum, +report what must change and get agreement before upgrading. + +Use `--prerelease` when selecting `Aspire.Hosting.Blazor` for the browser recipes. +If the project requires stable-only packages, skip that integration and +report which browser capabilities it blocks. Use stable Aspire packages for server-only +orchestration. + +If the user asks for advice only, describe the applicable commands and edits without +executing them. Mark runtime checks as not run. + +## Workflow + +### Step 1 — Choose the Blazor path + +Inspect the app's project file, startup code, and render modes. Keep the existing render mode. + +| If you find | Do this | +|---|---| +| `Microsoft.NET.Sdk.BlazorWebAssembly`, `wwwroot/index.html`, and no server host | Open [standalone-gateway.md](references/standalone-gateway.md). Serve the client through a Blazor Gateway. | +| `Microsoft.NET.Sdk.Web` with `AddRazorComponents().AddInteractiveWebAssemblyComponents()` and `MapRazorComponents().AddInteractiveWebAssemblyRenderMode()` | Open [hosted-webapp.md](references/hosted-webapp.md). Keep the existing server as the browser host and configure its YARP proxy. | +| A Blazor Web App that uses only static SSR or Interactive Server | Configure the AppHost, server defaults, and server-side API discovery. Skip the browser steps. Do not add a `.Client` project or a gateway. | + +Resolve links relative to this `SKILL.md`. If a reference is missing, list `references` +once and report which instructions you could not verify. + +### Step 2 — Report capabilities and actions before editing + +Write a `Capabilities` table with columns `Status`, `Capability`, and `Finding`. Use +✅ **Present**, ❌ **Missing**, — **Not applicable**, or ⚠️ **Blocked**. For each item +below, name the observed version, project, registration, or configuration that supports +the status. Do not mark runtime behavior as verified from source alone. + +| Capability | Check | +|---|---| +| .NET and Aspire | Record each detected version and whether it meets the minimum. | +| AppHost | Report project-based or single-file, and whether it exists or is selected for creation. If it exists, check for `DistributedApplication.CreateBuilder` and its AppHost package or SDK. | +| Resource registration | Check that the AppHost registers each relevant app, gateway, and managed API. | +| Blazor hosting | Report the path selected in Step 1. | +| API dependencies | List each as AppHost-managed or third-party. If the app calls no APIs, report `none`. | +| Server defaults | Check each hosted server and owned API for `AddServiceDefaults()` before `Build()` and `MapDefaultEndpoints()` before `Run()`. Reuse an existing defaults library. | +| WebAssembly defaults | Find the client service-defaults library, confirm the WASM project references it, and check startup for `AddBlazorClientServiceDefaults()`. Check that the library matches the hosting path in Step 1. | +| Browser hosting and configuration | Check the standalone gateway, base path, and client configuration, or the hosted server's `WithBrowserOptions` wiring. | +| API discovery | Check that the app references each managed API resource in the AppHost and the applicable HTTP clients use its resource name, not a literal backend host or port. If a hosted component runs on both server and browser, check that both register the same named or typed client. | +| Browser API proxy | Check for a gateway reference on the standalone path or a mapped YARP route on the hosted path. Confirm the browser gets the proxy address through configuration. | +| Server telemetry | Check exporter configuration for each applicable server resource. | +| Browser telemetry | Check that the dashboard exposes an HTTP/protobuf OTLP receiver and that the browser gets a same-origin OTLP path. Do not count the server's exporter as browser telemetry. | + +Apply these rules before selecting actions: + +- If no APIs exist, mark API discovery and API proxying **Not applicable**. Keep the + applicable hosting and telemetry steps. If only third-party APIs exist, preserve their + URLs and access policies. Do not register them for Aspire discovery or proxy them by + default. Configure discovery for AppHost-managed APIs even when there are no third-party APIs. +- If the app does not run WebAssembly, mark browser-only capabilities **Not applicable**. +- Under `Actions`, number only the changes needed for **Missing** items. Name each + file relative to the solution root. For commands, name the working directory and + show the resolved command. For **Blocked** items, name the prerequisite or decision + instead of scheduling the blocked action. If no changes are needed, write `Actions: none`. + +Replace each `<>` before running a command. Resolve path placeholders +relative to the stated working directory. Run the actions in order, then +verify the applicable capabilities in Step 5. + +### Step 3 — Add the AppHost and server defaults + +Run the commands in this step from the solution root. + +1. If there is no AppHost, run `dotnet new aspire-apphost -o "<>"` for a project-based + host or `dotnet new aspire-apphost-singlefile -o "<>"` for a file-based host. If a + template is missing, run `dotnet new install "Aspire.ProjectTemplates::<>"` + with the matching template version. Keep an existing AppHost's format. +2. If the hosted server or an owned API lacks server defaults, reuse the solution's + defaults library. If none exists, run `dotnet new aspire-servicedefaults -o "<>"`. + Add a reference from each server project that needs it, substituting the actual paths: + + ```bash + dotnet add "<>" reference "<>" + ``` + + Call `builder.AddServiceDefaults()` before `Build()` and `app.MapDefaultEndpoints()` + before `Run()`. Do not reference server defaults from a WebAssembly project. +3. Register missing hosted servers and owned APIs with `AddDotnetProject`, using paths + relative to the AppHost. If the hosted server calls an owned API, add a reference + from the server to the API resource: + + ```csharp + var api = builder.AddDotnetProject("your-api", "../Api/Api.csproj"); + builder.AddDotnetProject("webapp", "../WebApp/WebApp.csproj").WithReference(api); + ``` + + Keep legacy `Projects.*` references used by other resources. +4. Configure server HTTP clients that call an AppHost-managed API to use the API + resource name. Use an `https` discovery URI for HTTPS-only or `https+http` if HTTP + fallback is allowed. Keep working registrations and transport policy. + +### Step 4 — Add the missing WebAssembly wiring + +1. Skip this step if the app does not run WebAssembly or cannot use the Blazor hosting + package. Otherwise, follow [the shared client setup](references/wasm-client.md) to + generate or reuse client service defaults and wire them in the client's `Program.cs`. + Register resource-named HTTP clients only for AppHost-managed APIs. Reuse the same + registration on the hosted server if the component also calls the API there. +2. Follow the reference selected in Step 1. For standalone, register the client with + `AddBlazorWasmApp`, add `WithReference(api)` if it calls an AppHost-managed API, + attach it to the gateway with `WithBlazorClientApp`, and match `index.html`'s + `` to the resource sub-path. For hosted, map the + AppHost-generated proxy routes with YARP, and pass browser configuration using + `WithBrowserOptions`. Keep proxy setup and configuration parsing in a separate + helper file; call the helpers from `Program.cs`. For AppHost-managed APIs, route + browser requests through the app origin and verify protected routes still enforce + authorization. +3. Check that the browser receives an OTLP path. If Aspire cannot resolve a dashboard + HTTP/protobuf receiver, configure it in the active AppHost profile using + [dashboard endpoint troubleshooting](references/troubleshooting.md#missing-browser-otlp-endpoint). + Do not send dashboard addresses or credentials to the browser. + +### Step 5 — Run the AppHost and verify each signal + +From the AppHost directory, use the existing HTTPS profile and run: + +```bash +aspire run +``` + +1. In a second terminal in the AppHost directory, run `aspire describe --format Json`. + Check resource states and take the app or gateway HTTPS URL from the output. For + standalone, check the [gateway configuration](references/standalone-gateway.md#validate) + before opening a browser. +2. Open the app and trigger one interaction. Use the browser's Network panel or, if + installed, `playwright-cli` in one named session: + + ```shell + playwright-cli -s=blazor-validation open "<>" + playwright-cli -s=blazor-validation snapshot + playwright-cli -s=blazor-validation requests + ``` + + Use `goto` for a deep link and `click` with an element reference from `snapshot` if + needed. Confirm visible app content and inspect the statuses of framework assets, + any applicable same-origin API request, and the browser's OTLP posts. Use the + [standalone](references/standalone-gateway.md#validate) or + [hosted](references/hosted-webapp.md#validate) checks for the exact paths. +3. Use Aspire CLI to confirm dashboard ingestion for each applicable server or browser + telemetry source. Use the actual source name, not the gateway name for browser telemetry: + + ```shell + aspire otel logs "<>" --limit 5 + aspire otel spans "<>" --limit 5 --format Json + ``` + + If the app calls a managed API, take the trace ID from the relevant request span and + run `aspire otel spans --trace-id "<>"` to check the app and API spans together. +4. Keep the page open through one metric export interval if checking browser metrics. + Aspire 17's CLI does not show metrics. To verify dashboard display, open **Metrics** + in the dashboard and select the emitting resource. If you only observe a successful + metrics POST, report **export accepted; dashboard display not checked**. Do not + share the dashboard login token. Close the Playwright session if you opened it: + `playwright-cli -s=blazor-validation close`. + +Write a `Verification` table with columns `Check`, `Status`, and `Evidence`. Mark each +applicable check **Passed**, **Failed**, or **Not run**. Cite the observed result or +explain why the check could not run. Do not report browser telemetry as verified from +a successful build or server-only trace. + +If a check fails, open [troubleshooting.md](references/troubleshooting.md) and follow +the entry for the observed symptom. diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/add-aspire-to-blazor/references/hosted-webapp.md b/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/add-aspire-to-blazor/references/hosted-webapp.md new file mode 100644 index 00000000..c581ed3d --- /dev/null +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/add-aspire-to-blazor/references/hosted-webapp.md @@ -0,0 +1,234 @@ +# Hosted Blazor Web App + Aspire (server-hosted YARP + browser telemetry) + +For a **Blazor Web App** (`Microsoft.NET.Sdk.Web` server calling `AddRazorComponents()`, any interactivity: Server, WebAssembly, or Auto). The web app joins the AppHost as a **server project**. On this path the **server** reaches the API and pushes configuration to the browser: it hosts a **YARP reverse proxy** (bound from config the AppHost emits) so the interactive-WASM client reaches the API and the OTLP dashboard **same-origin**, and it pushes service-discovery + OTLP config to the client with `WithBrowserOptions` (delivered via the Blazor-Configuration DOM comment — no `/_blazor/_configuration` endpoint and no gateway). + +Work through the capabilities below and add only what the solution is missing. The moving parts that make browser telemetry work here are the AppHost's `ProxyBlazorService`/`ProxyBlazorTelemetry` calls, the server's YARP proxy bound from the host-emitted config, and the server's `WithBrowserOptions` push. + +For static SSR or Interactive Server without WebAssembly execution, skip the client defaults, +YARP browser proxy, browser configuration push, and browser telemetry sections. Register the server +with the AppHost and add server/API service defaults and discovery only. Do not add a `.Client` +project or change render modes. For mixed-mode apps, preserve the existing render-mode registrations +and apply browser pieces only to the WebAssembly path; the code below illustrates both modes. +Keep existing middleware, authentication/authorization, antiforgery, and endpoint behavior when +merging the examples; do not replace the entire startup file. +Decide how each proxied API is authorized before exposing it. YARP routes do not inherit +authorization from Blazor pages. If the front end enforces access control, configure the +appropriate YARP `AuthorizationPolicy` on the generated API route and verify that an +unauthenticated request is rejected. Same-origin routing does not enforce authorization. + +Project and resource names here (`WebApp`/`WebApp.Client`, `ClientServiceDefaults`, `your-api`, `webapp`) are illustrative — map them to the solution's actual names and paths. + +## Contents +- [Shared WebAssembly client setup](wasm-client.md) +- [Server: YARP proxy + browser config push](#server-yarp-proxy--browser-config-push) +- [The AppHost: proxy the API and its telemetry](#the-apphost-proxy-the-api-and-its-telemetry) +- [Validate](#validate) + +Follow the [shared WebAssembly client setup](wasm-client.md) using the `--hosted` template. +Do not add the standalone configuration initializer: the server supplies those values +through `WithBrowserOptions`. + +## Server: YARP proxy + browser config push + +Check the server for YARP registration against `ReverseProxy` configuration, +`AddServiceDiscoveryDestinationResolver()`, `MapReverseProxy()`, and +`WithBrowserOptions()` on the Razor component endpoint chain. Follow any existing +helper calls to check their implementation. Keep working setup and add only the missing +package references or helper calls shown below. + +**Server `.csproj`** — reference `ServiceDefaults`, add the YARP packages, and keep the template's `Components.WebAssembly.Server` reference: + +```xml + + + + + + + + + + +``` + +**Server `Program.cs`** — add missing service defaults and call the helpers below. Keep the +existing middleware and render-mode registrations. Place `AddAspireBlazorProxy()` before +`Build()`, `MapAspireBlazorProxy()` after `Build()`, and `WithAspireBrowserConfiguration()` +at the end of the existing Razor component endpoint chain: + +```csharp +using WebApp; +using WebApp.Components; + +var builder = WebApplication.CreateBuilder(args); + +// Aspire service defaults: OpenTelemetry, health checks, service discovery, resilience. +builder.AddServiceDefaults(); + +builder.Services.AddRazorComponents() + .AddInteractiveServerComponents() + .AddInteractiveWebAssemblyComponents(); + +builder.AddAspireBlazorProxy(); + +var app = builder.Build(); + +app.MapDefaultEndpoints(); // /health and /alive + +// Keep existing error handling, HTTPS, and antiforgery middleware here. +app.MapStaticAssets(); + +app.MapAspireBlazorProxy(); + +app.MapRazorComponents() + .AddInteractiveServerRenderMode() + .AddInteractiveWebAssemblyRenderMode() + .AddAdditionalAssemblies(typeof(WebApp.Client._Imports).Assembly) + .WithAspireBrowserConfiguration(app.Configuration); + +app.Run(); +``` + +**Server `AspireBlazorExtensions.cs`** — add this file next to the server's `Program.cs`. +Replace `WebApp` with the server project's namespace. Keep proxy setup and configuration +parsing in this file, not in `Program.cs`. + +```csharp +using System.Text.Json; +using Microsoft.AspNetCore.Builder; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; + +namespace WebApp; + +internal static class AspireBlazorExtensions +{ + public static void AddAspireBlazorProxy(this WebApplicationBuilder builder) + { + var reverseProxy = builder.Configuration.GetSection("ReverseProxy"); + if (reverseProxy.Exists()) + { + builder.Services.AddReverseProxy() + .LoadFromConfig(reverseProxy) + .AddServiceDiscoveryDestinationResolver(); + } + } + + public static void MapAspireBlazorProxy(this WebApplication app) + { + if (app.Configuration.GetSection("ReverseProxy").Exists()) + { + app.MapReverseProxy(); + } + } + + public static RazorComponentsEndpointConventionBuilder WithAspireBrowserConfiguration( + this RazorComponentsEndpointConventionBuilder endpoints, IConfiguration configuration) + { + var environment = ParseBrowserEnvironment(configuration["Client:ConfigResponse"]); + return endpoints.WithBrowserOptions(options => + { + foreach (var (key, value) in environment) + { + options.InteractiveWebAssembly.EnvironmentVariables[key] = value; + } + }); + } + + private static IReadOnlyDictionary ParseBrowserEnvironment(string? configResponse) + { + var result = new Dictionary(StringComparer.Ordinal); + if (string.IsNullOrEmpty(configResponse)) + { + return result; + } + + using var document = JsonDocument.Parse(configResponse); + if (document.RootElement.TryGetProperty("webAssembly", out var webAssembly) && + webAssembly.TryGetProperty("environment", out var environment)) + { + const string originToken = "__ORIGIN__"; + foreach (var item in environment.EnumerateObject()) + { + if (item.NameEquals("OTEL_EXPORTER_OTLP_HEADERS")) + { + continue; + } + + var value = item.Value.GetString() + ?? throw new InvalidOperationException($"Browser setting '{item.Name}' must be a string."); + result[item.Name] = value.StartsWith(originToken + "/", StringComparison.Ordinal) + ? value[originToken.Length..] + : value; + } + } + + return result; + } +} +``` + +`WithBrowserOptions` (namespace `Microsoft.AspNetCore.Builder`) takes an `Action`. +The .NET 11 RTM member is `InteractiveWebAssembly.EnvironmentVariables`; only the incoming +Aspire JSON still uses `webAssembly.environment`. Don't add the obsolete +`UseWebAssemblyDebugging()` middleware or `inspectUri` settings from older templates. + +Do not pass dashboard headers or secrets to the client. + +## The AppHost: proxy the API and its telemetry + +Check the AppHost for the server project registration and `ProxyBlazorTelemetry()`. +For each AppHost-managed API the app calls, check `WithReference(api)` for server calls +and `ProxyBlazorService(api)` for browser calls. Add only the missing registrations or +calls; skip API wiring when there is no managed API. + +Use the existing project or file-based AppHost with the +[Aspire 17 package references or directives](standalone-gateway.md#the-apphost-wasm-project--gateway). +Register the **server** project, not its `.Client` project. Resolve paths from the AppHost +directory, and suppress `ASPIREBLAZOR001` only around the experimental proxy calls: + +```csharp +using Aspire.Hosting; + +var builder = DistributedApplication.CreateBuilder(args); + +var apiService = builder.AddDotnetProject("your-api", "../ApiService/ApiService.csproj"); + +var webApp = builder.AddDotnetProject("webapp", "../WebApp/WebApp/WebApp.csproj") + .WithExternalHttpEndpoints() + .WithReference(apiService); // server-side service discovery (prerender) + +#pragma warning disable ASPIREBLAZOR001 +webApp.ProxyBlazorService(apiService) + .ProxyBlazorTelemetry(); +#pragma warning restore ASPIREBLAZOR001 + +builder.Build().Run(); +``` + +`ProxyBlazorService` and `ProxyBlazorTelemetry` emit `ReverseProxy` config and a +`Client:ConfigResponse` JSON payload. Aspire resolves a browser-facing API route in local runs; +open the AppHost-advertised HTTPS URL for same-origin requests. If you use an alias or +forwarded URL, verify the resolved API origin matches the browser origin before claiming +the route is same-origin. + +Add a health probe and startup wait only if the selected API profile serves the readiness +endpoint. The default `/health` endpoint from ServiceDefaults is development-only. + +The browser's OTLP endpoint is relative (`/_otlp`). Deliver only the browser configuration via +`WithBrowserOptions`; YARP forwards requests to their destinations. If there is no API, omit its +registration, `WithReference`, and `ProxyBlazorService`, but keep +`webApp.ProxyBlazorTelemetry()` when browser telemetry is wanted. + +## Validate + +Run the [shared validation steps](../SKILL.md#step-5--run-the-apphost-and-verify-each-signal). +Open the AppHost-advertised HTTPS URL without adding a gateway sub-path. + +- **Server API discovery:** If configured, open a server-rendered page that calls the + API. Confirm the data renders and the trace contains server and API spans. +- **Browser:** Open a route that actually runs WebAssembly. Trigger an interaction, + then look for POSTs to `/_otlp/v1/logs`, `/_otlp/v1/traces`, and `/_otlp/v1/metrics`. + Use `webapp (client)` as the telemetry source for a server resource named `webapp`. +- **Browser API discovery:** If configured, confirm a successful same-origin request + under `/_api/your-api/` and a trace containing browser, server, and API spans. diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/add-aspire-to-blazor/references/standalone-gateway.md b/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/add-aspire-to-blazor/references/standalone-gateway.md new file mode 100644 index 00000000..eb084825 --- /dev/null +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/add-aspire-to-blazor/references/standalone-gateway.md @@ -0,0 +1,123 @@ +# Standalone Blazor WebAssembly + Blazor Gateway + +Use these steps for a standalone Blazor WebAssembly app. Replace the example paths and +resource names with the solution's values. Add only missing wiring. + +## Contents +- [Shared WebAssembly client setup](wasm-client.md) +- [Replace the dev server with the gateway](#replace-the-dev-server-with-the-gateway) +- [Set the base path](#set-the-base-path) +- [The AppHost: WASM project + gateway](#the-apphost-wasm-project--gateway) +- [Validate](#validate) + +Follow the [shared WebAssembly client setup](wasm-client.md) using the standalone template. +Keep its JS initializer: it fetches `_blazor/_configuration` relative to the app's base path. + +## Replace the dev server with the gateway + +Check the WebAssembly project for `Microsoft.AspNetCore.Components.WebAssembly.DevServer` +and `Microsoft.AspNetCore.Components.Gateway`. Remove the dev server reference if present. +Add the Gateway package if missing; match its version to the app's ASP.NET Core packages. + +```xml + + + +``` + +## Set the base path + +Compare the `` in `wwwroot/index.html` with the WASM resource's AppHost sub-path. +If they match, leave it unchanged. If it is `/` or points to another path, set it to the +resource sub-path, including the trailing slash. For a resource named `app`, use: + +```html + +``` + +## The AppHost: WASM project + gateway + +Check the AppHost for the WASM app registration, the gateway registration, and the +`WithBlazorClientApp` link. For each AppHost-managed API the WASM app calls, check its +`WithReference` call. Keep working registrations; add only missing resources or links. + +Keep the existing AppHost format. Resolve project paths from its directory. Use +`AddDotnetProjectBlazorGateway` for new gateway registrations. + +**Project AppHost** — add any missing package references. Keep the project's target framework: + +```xml + + + Exe + net11.0 + + + + + + +``` + +From the solution root, add the Blazor hosting package: + +```shell +dotnet add "<>" package Aspire.Hosting.Blazor --prerelease +``` + +Confirm the resolved package matches the AppHost's Aspire version. If it does not, select a +compatible version explicitly. + +**File-based AppHost** — put the package directives at the top of `apphost.cs` instead. +Replace `<>` with a compatible prerelease package version: + +```csharp +#:package Aspire.Hosting.AppHost@17.0.0 +#:package Aspire.Hosting.Dotnet@17.0.0 +#:package Aspire.Hosting.Blazor@<> +``` + +Register the app and gateway. Omit the API registration and `WithReference` if the app +calls no AppHost-managed APIs. Before enabling the gateway process's HTTP/protobuf +exporter, check that the dashboard provides an HTTP receiver: + +```csharp +using Aspire.Hosting; + +var builder = DistributedApplication.CreateBuilder(args); + +var apiService = builder.AddDotnetProject("your-api", "../ApiService/ApiService.csproj"); + +#pragma warning disable ASPIREBLAZOR001 +var blazorApp = builder.AddBlazorWasmApp("app", "../Client/Client.csproj") + .WithReference(apiService); + +builder.AddDotnetProjectBlazorGateway("gateway") + .WithExternalHttpEndpoints() + .WithOtlpExporter(OtlpProtocol.HttpProtobuf) + .WithBlazorClientApp(blazorApp); +#pragma warning restore ASPIREBLAZOR001 + +builder.Build().Run(); +``` + +## Validate + +Run the [shared validation steps](../SKILL.md#step-5--run-the-apphost-and-verify-each-signal). +After `aspire describe`, use the gateway's HTTPS port and the WASM resource name: + +```shell +curl "https://localhost:<>/<>/_blazor/_configuration" +``` + +- **Configuration:** Check that `OTEL_EXPORTER_OTLP_ENDPOINT` is a same-origin path + such as `/app/_otlp`, that discovery keys exist for managed APIs only when configured, + and that the response contains no dashboard credentials. +- **Browser:** Open the gateway URL at the resource sub-path (for example `/app/`). + Check one existing deep link and confirm that framework assets load under that prefix. + Look for POSTs to `/app/_otlp/v1/logs`, `/app/_otlp/v1/traces`, and `/app/_otlp/v1/metrics`. + Use the WASM resource name as the telemetry source. +- **Managed API:** Check that the network request succeeds under `/app/_api/your-api/` + and that the trace contains WASM client, gateway, and API spans. Verify protected + routes reject unauthorized requests before exposing them. Skip this check if no + managed API is configured. diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/add-aspire-to-blazor/references/troubleshooting.md b/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/add-aspire-to-blazor/references/troubleshooting.md new file mode 100644 index 00000000..06c7c7e1 --- /dev/null +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/add-aspire-to-blazor/references/troubleshooting.md @@ -0,0 +1,28 @@ +# Troubleshoot Blazor Aspire integration + +| Symptom | Check and act | +|---|---| +| Standalone page is blank or assets return 404 | Compare `wwwroot/index.html`'s `` with the WASM resource sub-path. If they differ, set the base to the resource sub-path, including its trailing slash. | +| AppHost cannot resolve a `Projects.*` type | For new registrations, use the path-based `AddDotnetProject` or `AddBlazorWasmApp` API. Keep working legacy registrations. | +| Gateway fails to acquire its CLI | Check that the configured NuGet sources provide the `Microsoft.AspNetCore.Components.Gateway.Cli` version requested by Aspire. | +| Managed API request goes cross-origin | Check that the client uses the API resource name, not the backend host and port. Verify that the gateway or hosted proxy resolves the discovery entry to the browser's origin. If using a hostname alias, compare it with the AppHost-advertised HTTPS origin. | +| Browser metrics are missing but logs and traces appear | Keep the same page open through one export interval. Check whether a metrics POST was accepted, then select the browser source in the dashboard's **Metrics** view. | +| Hosting telemetry grows while the app is idle | Confirm the OTLP proxy produces a feedback loop in traces. Exclude only the confirmed telemetry ingress and dashboard destination from instrumentation. Compose existing filters; do not drop all `/v1/` requests or weaken HTTPS. | + +## Missing browser OTLP endpoint + +Check `WithBlazorClientApp` on the standalone path or `ProxyBlazorTelemetry()` on the +hosted path. Check whether the proxy can resolve `otlp-http` on the dashboard resource. +Do not use the dashboard's gRPC endpoint for browser export or add `WithOtlpExporter` +to create the receiver; it configures the gateway process's own exporter. + +If the HTTP receiver is missing, add `ASPIRE_DASHBOARD_OTLP_HTTP_ENDPOINT_URL` to +`environmentVariables` in the active profile in `Properties/launchSettings.json` +for a project-based AppHost or `apphost.run.json` for a single-file AppHost. +Keep the existing gRPC setting. Use the same scheme and a distinct port. The AppHost +also recognizes `DOTNET_DASHBOARD_OTLP_HTTP_ENDPOINT_URL` as a fallback. For an +external dashboard, use its configured HTTP/protobuf endpoint. + +Restart the AppHost and verify the browser receives a same-origin OTLP path and +can export through it. Keep dashboard addresses, credentials, and login tokens +out of browser configuration and reports. diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/add-aspire-to-blazor/references/wasm-client.md b/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/add-aspire-to-blazor/references/wasm-client.md new file mode 100644 index 00000000..b079fad9 --- /dev/null +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/add-aspire-to-blazor/references/wasm-client.md @@ -0,0 +1,79 @@ +# Configure the WebAssembly client + +Use this reference for standalone WebAssembly and for the WebAssembly client of a +Blazor Web App. Skip it for server-only apps. + +## Add client service defaults + +Check the client project's references and other solution projects for a compatible library +that provides `AddBlazorClientServiceDefaults()`. If you find one, reuse it and add the +project reference only if missing. Check the client's `Program.cs` and add only the +missing startup calls in the order shown below. + +If no compatible library exists, run `dotnet new blazorwasm-servicedefaults --help` to check the template. +From the solution root, replace the path placeholders and run **one** template command: + +```shell +# Standalone: include the JS initializer that fetches configuration from the gateway. +dotnet new blazorwasm-servicedefaults -o "<>" + +# Hosted: omit that initializer; the server supplies configuration with WithBrowserOptions. +dotnet new blazorwasm-servicedefaults --hosted -o "<>" +``` + +If the client does not yet reference the library, run this from the solution root: + +```shell +dotnet add "<>" reference "<>" +``` + +In the client's `Program.cs`, add any missing calls before building the WebAssembly host: + +```csharp +using Microsoft.Extensions.Hosting; + +// After creating the WebAssemblyHostBuilder: +builder.Configuration.AddEnvironmentVariables(); +builder.AddBlazorClientServiceDefaults(); +``` + +Keep the generated telemetry and discovery setup. Let the WebAssembly host start its +registered hosted services; do not resolve telemetry providers manually. + +## Register clients for AppHost-managed APIs + +Skip this section if there are no AppHost-managed APIs. Keep existing registrations and +access policies for third-party APIs. For each managed API, check the named or typed client +registration. If it uses the correct resource name and transport policy, leave it unchanged. +If it uses a literal backend address, update that registration rather than adding a second one. + +For a new named client, put the registration in `ApiClientExtensions.cs` in the WebAssembly +project. Use the actual project namespace and AppHost resource name: + +```csharp +using System; +using Microsoft.Extensions.DependencyInjection; + +namespace Client; + +public static class ApiClientExtensions +{ + public static void AddAppApiClients(this IServiceCollection services) + { + services.AddHttpClient("your-api", client => + { + client.BaseAddress = new Uri("https+http://your-api"); + }); + } +} +``` + +Use the `https` scheme instead if the API requires HTTPS-only discovery. Import the helper's +namespace and call `builder.Services.AddAppApiClients()` in the client's `Program.cs`. +If the same component calls the API on the server, call the same helper from the hosted +server's `Program.cs` using its existing reference to the WebAssembly project. Do not have +the server call `AddBlazorClientServiceDefaults()`; it uses server service defaults. + +Inject `IHttpClientFactory` and call `CreateClient("your-api")` in either runtime. +The AppHost and the browser host supply the address: the server resolves the API resource +directly, while the browser resolves the same resource name to a same-origin proxy route. diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/create-blazor-project/SKILL.md b/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/create-blazor-project/SKILL.md index 71b25e22..98c9d819 100644 --- a/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/create-blazor-project/SKILL.md +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/create-blazor-project/SKILL.md @@ -7,7 +7,8 @@ description: > starting a new web site, choosing render modes (Static SSR, Interactive Server, Interactive WebAssembly, Auto), running dotnet new blazor with the right options, setting up initial project structure. - DO NOT USE FOR: adding features to existing projects, changing how an existing + DO NOT USE FOR: adding Aspire to an existing app (use add-aspire-to-blazor), + adding features to existing projects, changing how an existing app renders, or component authoring (use author-component). --- diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/fetch-and-send-data/SKILL.md b/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/fetch-and-send-data/SKILL.md index cfb9ea36..dd66a6dc 100644 --- a/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/fetch-and-send-data/SKILL.md +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet-blazor/skills/fetch-and-send-data/SKILL.md @@ -1,7 +1,17 @@ --- license: MIT name: fetch-and-send-data -description: Call APIs, load data into components, and handle the async lifecycle in Blazor. USE FOR fetching data from a backend, submitting data to an API, displaying loading/error states, registering HttpClient, building service abstractions for Auto/WebAssembly render modes. DO NOT USE for form validation (see collect-user-input), prerendering persistence (see support-prerendering), or project scaffolding (see create-blazor-project). +description: >- + Implement API calls and async request lifecycles in Blazor components. + DO NOT USE FOR: EditForm field validation, ValidationMessageStore, or showing + and clearing field errors such as duplicate email (use collect-user-input), + even when an existing API or submission handler supplies the error. + USE FOR: fetching or submitting data when the request itself needs work, + cancellation, loading and retry states, HttpClient registration, and shared + API client abstractions for server and WebAssembly execution. + Also exclude Aspire orchestration, service discovery, same-origin proxying, + and browser telemetry integration (use add-aspire-to-blazor), prerendering + persistence (use support-prerendering), and scaffolding (use create-blazor-project). --- # Fetch and Send Data diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet-msbuild/.claude-plugin/plugin.json b/external-sources/upstreams/dotnet-skills/plugins/dotnet-msbuild/.claude-plugin/plugin.json index 7de5df4c..728c281c 100644 --- a/external-sources/upstreams/dotnet-skills/plugins/dotnet-msbuild/.claude-plugin/plugin.json +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet-msbuild/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "dotnet-msbuild", - "version": "0.1.12", + "version": "0.1.13", "description": "Comprehensive MSBuild and .NET build skills: failure diagnosis, performance optimization, code quality, and modernization.", "skills": ["./skills/"], "agents": [ diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet-msbuild/.codex-plugin/plugin.json b/external-sources/upstreams/dotnet-skills/plugins/dotnet-msbuild/.codex-plugin/plugin.json index e1ceae9c..0007ade0 100644 --- a/external-sources/upstreams/dotnet-skills/plugins/dotnet-msbuild/.codex-plugin/plugin.json +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet-msbuild/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "dotnet-msbuild", - "version": "0.1.12", + "version": "0.1.13", "description": "Comprehensive MSBuild and .NET build skills: failure diagnosis, performance optimization, code quality, and modernization.", "skills": ["./skills/"], "mcpServers": { diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet-msbuild/plugin.json b/external-sources/upstreams/dotnet-skills/plugins/dotnet-msbuild/plugin.json index 7de5df4c..728c281c 100644 --- a/external-sources/upstreams/dotnet-skills/plugins/dotnet-msbuild/plugin.json +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet-msbuild/plugin.json @@ -1,6 +1,6 @@ { "name": "dotnet-msbuild", - "version": "0.1.12", + "version": "0.1.13", "description": "Comprehensive MSBuild and .NET build skills: failure diagnosis, performance optimization, code quality, and modernization.", "skills": ["./skills/"], "agents": [ diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet-test-migration/.claude-plugin/plugin.json b/external-sources/upstreams/dotnet-skills/plugins/dotnet-test-migration/.claude-plugin/plugin.json index f4e3e8ee..5817ed6e 100644 --- a/external-sources/upstreams/dotnet-skills/plugins/dotnet-test-migration/.claude-plugin/plugin.json +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet-test-migration/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "dotnet-test-migration", - "version": "0.1.12", + "version": "0.1.13", "description": "Skills and an orchestrator agent for migrating .NET test frameworks and platforms: MSTest and xUnit version upgrades, xUnit/NUnit-to-MSTest conversion, and VSTest to Microsoft.Testing.Platform.", "skills": ["./skills/"], "agents": [ diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet-test-migration/.codex-plugin/plugin.json b/external-sources/upstreams/dotnet-skills/plugins/dotnet-test-migration/.codex-plugin/plugin.json index b76d6c45..1d76e948 100644 --- a/external-sources/upstreams/dotnet-skills/plugins/dotnet-test-migration/.codex-plugin/plugin.json +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet-test-migration/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "dotnet-test-migration", - "version": "0.1.12", + "version": "0.1.13", "description": "Skills for migrating .NET test frameworks and platforms: MSTest and xUnit version upgrades, xUnit/NUnit-to-MSTest conversion, and VSTest to Microsoft.Testing.Platform.", "skills": ["./skills/"] } diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet-test-migration/plugin.json b/external-sources/upstreams/dotnet-skills/plugins/dotnet-test-migration/plugin.json index f4e3e8ee..5817ed6e 100644 --- a/external-sources/upstreams/dotnet-skills/plugins/dotnet-test-migration/plugin.json +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet-test-migration/plugin.json @@ -1,6 +1,6 @@ { "name": "dotnet-test-migration", - "version": "0.1.12", + "version": "0.1.13", "description": "Skills and an orchestrator agent for migrating .NET test frameworks and platforms: MSTest and xUnit version upgrades, xUnit/NUnit-to-MSTest conversion, and VSTest to Microsoft.Testing.Platform.", "skills": ["./skills/"], "agents": [ diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet-test/.claude-plugin/plugin.json b/external-sources/upstreams/dotnet-skills/plugins/dotnet-test/.claude-plugin/plugin.json index f6fe14b8..8387bf3b 100644 --- a/external-sources/upstreams/dotnet-skills/plugins/dotnet-test/.claude-plugin/plugin.json +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet-test/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "dotnet-test", - "version": "1.0.1", + "version": "1.0.2", "description": "Skills for running, generating, analyzing, and improving .NET tests: test execution, filtering, platform detection, coverage, testability, and MSTest workflows.", "skills": ["./skills/"], "agents": [ diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet-test/.codex-plugin/plugin.json b/external-sources/upstreams/dotnet-skills/plugins/dotnet-test/.codex-plugin/plugin.json index 5ad2b849..1382baa9 100644 --- a/external-sources/upstreams/dotnet-skills/plugins/dotnet-test/.codex-plugin/plugin.json +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet-test/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "dotnet-test", - "version": "1.0.1", + "version": "1.0.2", "description": "Skills for running, generating, analyzing, and improving .NET tests: test execution, filtering, platform detection, coverage, testability, and MSTest workflows.", "skills": ["./skills/"] } diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet-test/plugin.json b/external-sources/upstreams/dotnet-skills/plugins/dotnet-test/plugin.json index f6fe14b8..8387bf3b 100644 --- a/external-sources/upstreams/dotnet-skills/plugins/dotnet-test/plugin.json +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet-test/plugin.json @@ -1,6 +1,6 @@ { "name": "dotnet-test", - "version": "1.0.1", + "version": "1.0.2", "description": "Skills for running, generating, analyzing, and improving .NET tests: test execution, filtering, platform detection, coverage, testability, and MSTest workflows.", "skills": ["./skills/"], "agents": [ diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet/.claude-plugin/plugin.json b/external-sources/upstreams/dotnet-skills/plugins/dotnet/.claude-plugin/plugin.json index 2a1b8d18..e6731be3 100644 --- a/external-sources/upstreams/dotnet-skills/plugins/dotnet/.claude-plugin/plugin.json +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "dotnet", - "version": "0.2.6", + "version": "0.2.7", "description": "C# language server (LSP) integration for coding agents and high-level .NET development skills.", "skills": ["./skills/"], "lspServers": "./.lsp.json" diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet/.codex-plugin/plugin.json b/external-sources/upstreams/dotnet-skills/plugins/dotnet/.codex-plugin/plugin.json index 27b76aa1..cb59950d 100644 --- a/external-sources/upstreams/dotnet-skills/plugins/dotnet/.codex-plugin/plugin.json +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "dotnet", - "version": "0.2.6", + "version": "0.2.7", "description": "Core C# and .NET development skills for coding agents.", "skills": ["./skills/"] } diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet/plugin.json b/external-sources/upstreams/dotnet-skills/plugins/dotnet/plugin.json index 7f331a3d..69a7a91a 100644 --- a/external-sources/upstreams/dotnet-skills/plugins/dotnet/plugin.json +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet/plugin.json @@ -1,6 +1,6 @@ { "name": "dotnet", - "version": "0.2.6", + "version": "0.2.7", "description": "C# language server (LSP) integration for coding agents and high-level .NET development skills.", "skills": ["./skills/"], "lspServers": "./lsp.json" diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet/skills/csharp-expert/references/dotnet-skills-marketplace.md b/external-sources/upstreams/dotnet-skills/plugins/dotnet/skills/csharp-expert/references/dotnet-skills-marketplace.md index 5a737332..a7e40cb7 100644 --- a/external-sources/upstreams/dotnet-skills/plugins/dotnet/skills/csharp-expert/references/dotnet-skills-marketplace.md +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet/skills/csharp-expert/references/dotnet-skills-marketplace.md @@ -48,7 +48,7 @@ Update an installed plugin with: - `dotnet-aspnetcore`: ASP.NET Core APIs, endpoints, middleware, or Blazor Server to Blazor Web App conversion. - `dotnet-blazor`: Blazor projects, components, forms, auth, interactivity, prerendering, data - flow, or JS interop. + flow, JS interop, or Aspire integration. - `dotnet-winforms`: Windows Forms project setup, UI, binding, accessibility, or modernization. - `dotnet11`: .NET 11-specific APIs and language features. @@ -72,6 +72,7 @@ or installing a marketplace route. | Author a reusable Blazor component with parameters, content, and callbacks | `author-component` | `dotnet-blazor` | | Collect and validate user input in a Blazor form | `collect-user-input` | `dotnet-blazor` | | Create a Blazor project with framework-specific defaults | `create-blazor-project` | `dotnet-blazor` | +| Add or complete Aspire integration for an existing Blazor app | `add-aspire-to-blazor` | `dotnet-blazor` | | Discover or instantiate a general `dotnet new` template | `template-discovery` or `template-instantiation` | `dotnet-template-engine` | | Repair MAUI XAML binding and change notification | `maui-data-binding` | `dotnet-maui` | | Create, modify, or debug a Windows Forms application | `winforms-expert` | `dotnet-winforms` | diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet11/.claude-plugin/plugin.json b/external-sources/upstreams/dotnet-skills/plugins/dotnet11/.claude-plugin/plugin.json index cba737f7..c02ac50f 100644 --- a/external-sources/upstreams/dotnet-skills/plugins/dotnet11/.claude-plugin/plugin.json +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet11/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "dotnet11", - "version": "0.1.3", + "version": "0.1.4", "description": "Skills for .NET 11 APIs and language features.", "skills": ["./skills/"] } diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet11/.codex-plugin/plugin.json b/external-sources/upstreams/dotnet-skills/plugins/dotnet11/.codex-plugin/plugin.json index cba737f7..c02ac50f 100644 --- a/external-sources/upstreams/dotnet-skills/plugins/dotnet11/.codex-plugin/plugin.json +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet11/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "dotnet11", - "version": "0.1.3", + "version": "0.1.4", "description": "Skills for .NET 11 APIs and language features.", "skills": ["./skills/"] } diff --git a/external-sources/upstreams/dotnet-skills/plugins/dotnet11/plugin.json b/external-sources/upstreams/dotnet-skills/plugins/dotnet11/plugin.json index cba737f7..c02ac50f 100644 --- a/external-sources/upstreams/dotnet-skills/plugins/dotnet11/plugin.json +++ b/external-sources/upstreams/dotnet-skills/plugins/dotnet11/plugin.json @@ -1,6 +1,6 @@ { "name": "dotnet11", - "version": "0.1.3", + "version": "0.1.4", "description": "Skills for .NET 11 APIs and language features.", "skills": ["./skills/"] } diff --git a/external-sources/vendir.lock.yml b/external-sources/vendir.lock.yml index 41eae9af..92282570 100644 --- a/external-sources/vendir.lock.yml +++ b/external-sources/vendir.lock.yml @@ -6,27 +6,27 @@ directories: sha: d8719df176eb1c0c283d0c2cd8eb3f121fba9735 path: blazingfastdotnet - git: - commitTitle: 'Merge pull request #1415 from dotnet/abhitejjohn-fix-gh-aw-action-lock...' - sha: 46c206f1c45a25b8925b4b69b1d910138c5d07b2 + commitTitle: 'Merge pull request #1375 from dotnet/bot/weekly-version-sync...' + sha: 399a0f3a87aef59b5ded28454fc600dfbdb533c9 tags: - - skill-validator-nightly-2-g46c206f1 + - skill-validator-nightly-4-g399a0f3a path: dotnet-skills - git: commitTitle: Add Cursor rules that reference the existing skill docs... sha: af2319bd01bb7cc881267a9ef42cafdaf5e9029d path: webgpu-claude-skill - git: - commitTitle: 'fix(astro): stop formatted error stack traces from dropping every - other frame (#18914)...' - sha: e64e6b98a0a5dc3718563b3b39dc2b0884b405a7 + commitTitle: 'fix(node): do not echo `//` or backslash paths into `Location` + with `trailingSlash: ''never''` (#18921)...' + sha: 2cb2de91e69bf2906c711794c6834ccf40292ac6 tags: - - '@astrojs/cloudflare@14.4.10-16-ge64e6b98a0' + - '@astrojs/cloudflare@14.4.10-23-g2cb2de91e6' path: astro - git: - commitTitle: 'Update to .NET 11 (Fixes #205) (#208)...' - sha: bb2f5426121be844e99a1dc5f786ef9c6fdb15c5 + commitTitle: AI specs + sha: 74d12a533c90594c0ce10db914a99a4bcea37ff4 tags: - - 3.0.0-22-gbb2f542 + - 3.0.0-23-g74d12a5 path: roslynk path: upstreams kind: LockConfig