Use Jangle UI browser components and installed guidance from an ASP.NET Core application.
ASP.NET Core and NuGet
The Jangle UI NuGet distribution packages the same Web Components and token CSS as npm, together with local consumer guidance. It serves browser assets through ASP.NET Core's Razor Class Library mechanism. It is not a separate C# component implementation, a Blazor form library, or a replacement for application-owned event and state handling.
Package access
NuGet packages use the protected Cloudsmith feed. An active subscription and account-issued download credential are required, as with npm. Your account shows both npm and NuGet configuration when a credential is created; copy it then because the raw credential is shown only once. Configure the feed in your user-level NuGet settings or CI secret store:
<configuration>
<packageSources>
<add key="Jangle" value="https://nuget.cloudsmith.io/jangle/jangle-production/v3/index.json" />
</packageSources>
<packageSourceCredentials>
<Jangle>
<add key="Username" value="token" />
<add key="ClearTextPassword" value="%JANGLE_PACKAGE_TOKEN%" />
</Jangle>
</packageSourceCredentials>
</configuration>Set JANGLE_PACKAGE_TOKEN through your local environment or CI secret store. Do not commit the credential or put it in a feed URL. Configure source mapping when your organization requires private package names to resolve only from their intended feed.
Install and load
Add Jangle.UI to an SDK-style ASP.NET Core application with your normal NuGet workflow, pinning the chosen release. Its version follows Components. The distribution targets ASP.NET Core 8 and later.
Load the assets once in your application layout:
<link rel="stylesheet" href="/_content/Jangle.UI/tokens.css" />
<script type="module" src="/_content/Jangle.UI/jangle-ui.js"></script>This module registers all shipped Jangle custom elements. Its icon modules load locally from the package. No npm install or Node build is required in the consuming application. Use your application's path-base-aware URL helpers when it is hosted under a subpath.
Configure static-file and static-web-asset handling for the ASP.NET version and deployment you use. Confirm both the stylesheet and module respond successfully from the deployed application; do not rely only on a development build. See Microsoft's Razor Class Library static assets guidance.
<jangle-card>
<h2 slot="heading">Inventory</h2>
<p slot="description">Current stock for this location.</p>
<p>Your application composes the body content.</p>
</jangle-card>Custom-element properties and events follow the browser contracts. Applications own JavaScript/.NET interop and state; do not infer Blazor EditForm integration or C# event bindings from native browser form participation.
Installed guidance
On build, the package installs a Copilot discovery file and copies its guidance into the package-owned .jangle/nuget/Jangle.UI/ directory. Upgrades refresh unchanged guidance and remove retired package-owned files. Edited generated guidance is preserved by failing setup with an explanation; keep application exceptions in application-owned instructions instead.
Commit the Jangle discovery file; ignore .jangle/nuget/. Root AGENTS.md, CLAUDE.md, and Copilot instructions are preserved. Existing differing discovery files are left in place with a warning. Restart your agent session after setup or upgrades.
Configure other tools in your application project:
<PropertyGroup>
<JangleAgentTools>copilot;codex;claude;cursor</JangleAgentTools>
</PropertyGroup>Guidance defaults to the application project directory. Open that directory as the agent workspace. If the application owns a different workspace root, set JangleWorkspaceRoot explicitly. Do not share one guidance destination between applications with independent package versions; conflicting ownership fails rather than silently switching the agent's version.
Set JangleInstallAgentGuidance to false for read-only builds or when you configure discovery separately. The guidance remains inside the installed NuGet package. See Agent guidance for discovery behavior and application ownership.