validate-static-web-asset-change

Build Static Web Assets SDK tasks, patch the target SDK, and validate manifests.

1.2k|334|Updated Oct 13, 2022
One-click install
npx skills add https://github.com/dotnet/dotnet --skill validate-static-web-asset-change
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: validate-static-web-asset-change
Source: https://github.com/dotnet/dotnet/tree/main/src/sdk/.claude/skills/validate-static-web-asset-change
Command: npx skills add https://github.com/dotnet/dotnet --skill validate-static-web-asset-change

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines local validation of changes to the Static Web Assets SDK by providing a guided process to build affected tasks, patch the target SDK, and verify asset behavior before committing changes.

Core Features & Use Cases

  • Build only the Static Web Assets tasks to speed iteration.
  • Patch the StaticWebAssets Sdks/Microsoft.NET.Sdk.StaticWebAssets to apply changes in a test environment.
  • Validate manifests and asset coverage by inspecting .staticwebassets.* files and endpoint behavior in a sample project.
  • Use case: Developers modify resources like CSS/JS or manifest logic and want to ensure assets are published correctly to the runtime.

Quick Start

Build the StaticWebAssetsSdk Tasks, patch the target Sdks/Microsoft.NET.Sdk.StaticWebAssets in a test SDK, and validate assets and manifests in a sample project.

Frequently Asked Questions about validate-static-web-asset-change

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate changes to Static Web Assets SDK tasks locally?

To validate Static Web Assets SDK changes locally, build the affected tasks, patch the target Sdks/Microsoft.NET.Sdk.StaticWebAssets in a test SDK, and verify asset behavior in a sample project before committing.

What is the process for patching the .NET Static Web Assets SDK to test modifications?

Patching the .NET Static Web Assets SDK involves building modified tasks and applying them to a local test SDK, allowing developers to validate manifest updates and endpoint configurations in a controlled environment.

How do I verify static web asset manifests reflect my source code changes?

You can verify static web asset manifests by inspecting generated .staticwebassets.* files and confirming that endpoints resolve and assets compile correctly within a sample project using the patched SDK.

Do I need a specific build environment to patch the Static Web Assets SDK?

Yes, patching the Static Web Assets SDK requires a local build environment and access to a redist or test SDK to safely apply task modifications and validate asset behavior before deployment.

Why are my static web assets not updating after modifying the SDK targets?

Static web assets may not update if you only modify targets without patching the test SDK; you must build the affected tasks, patch the SDK, and validate the runtime manifests to ensure changes apply correctly.