Skip to content

System.Web.WebPages.Razor

reference
1 min readUpdated

Kind: Service

Source: Pams/Core/Pams.Security/Pams.Security.csproj (line 1)

Part of: Pams

NuGet package dependency

System.Web.WebPages.Razor is a NuGet package dependency declared by Pams.Security.csproj. It supplies Razor runtime components used by legacy ASP.NET Web Pages integrations that may be referenced by the Pams.Security project.

Diagram

mermaid
flowchart TD
    A[Pams.Security.csproj] --> B[System.Web.WebPages.Razor package]
    B --> C[Razor runtime components]
    C --> D[Legacy ASP.NET Web Pages integration]
    D --> E[Pams.Security application code]

Usage

ts
// Call an application endpoint backed by legacy Razor or ASP.NET components.
async function loadSecurityStatus() {
  const response = await fetch("/security/status", {
    headers: {
      Accept: "application/json",
    },
  });

  if (!response.ok) {
    throw new Error(`Security status request failed: ${response.status}`);
  }

  return response.json();
}

loadSecurityStatus().then(console.log);

AI Coding Instructions

  • Keep System.Web.WebPages.Razor package references in the legacy .csproj format used by Pams.Security.
  • Do not treat this NuGet dependency as a TypeScript or browser package; client code should call application endpoints instead.
  • Check target framework compatibility before changing the package version or removing the reference.
  • Review Razor and ASP.NET Web Pages call sites before modifying dependencies in Pams.Security.csproj.

Was this page helpful?

Download as PDF