# NETStandard.Library

**Kind:** Service

**Source:** `Pams/Web/Pams.WebApp/Pams.WebApp.csproj` (line 1)

**Part of:** [Pams](subsystem-pams)

NuGet package dependency

`NETStandard.Library` is a NuGet package dependency declared in `Pams.WebApp.csproj`. It supplies .NET Standard reference assemblies during package restore and build for the Pams web application.

## Diagram

```mermaid
sequenceDiagram
    participant Developer
    participant Project as Pams.WebApp.csproj
    participant NuGet
    participant Build as dotnet build

    Developer->>Build: Run build command
    Build->>Project: Read package references
    Project->>NuGet: Request NETStandard.Library
    NuGet-->>Build: Restore package assets
    Build-->>Developer: Compile application
```

## Usage

```typescript
import { execFileSync } from "node:child_process";
import path from "node:path";

const projectFile = path.join(
  "Pams",
  "Web",
  "Pams.WebApp",
  "Pams.WebApp.csproj"
);

execFileSync("dotnet", ["restore", projectFile], {
  stdio: "inherit",
});

execFileSync("dotnet", ["build", projectFile], {
  stdio: "inherit",
});
```

## AI Coding Instructions

- Keep the `NETStandard.Library` package reference in `Pams.WebApp.csproj` aligned with the project's target framework.
- Run `dotnet restore` before builds when package assets are not present.
- Update package references through the project file or supported .NET tooling rather than editing generated restore files.
- Check dependent projects for target-framework compatibility before changing this package reference.

## Used by

1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Injected or called by (1)

- `Pams.WebApp` — `Pams/Web/Pams.WebApp/Pams.WebApp.csproj`:1
