> For the complete documentation index, see [llms.txt](https://docs.sealsecurity.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sealsecurity.io/using-platform/working-with-seal-apps/artifact-server/nuget.md).

# Editing NuGet dependencies

## Direct dependencies

NuGet's project file is the `.csproj` (or equivalent for the project type). Update the `Version` attribute on the `<PackageReference>`:

```diff
-<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
+<PackageReference Include="Newtonsoft.Json" Version="13.0.3-sp1" />
```

Run `dotnet restore` followed by `dotnet build`; the resolved package is the sealed version pulled through `nuget.sealsecurity.io`.

## Transitive dependencies (explicit `<PackageReference>`)

NuGet does not have a separate override syntax. To force a transitive to a sealed version, add an explicit `<PackageReference>` for the package to your `.csproj` with the sealed version. NuGet treats it as a direct requirement and resolves the rest of the graph against it.

```diff
 <ItemGroup>
   <PackageReference Include="SomeFramework" Version="2.0.0" />
+  <PackageReference Include="System.Text.RegularExpressions" Version="4.3.0-sp1" />
 </ItemGroup>
```

`Include` names the transitive package; `Version` is the sealed version you want resolved.

## Related

* [Configuring NuGet](/setup-apps-os/artifact-server/configuring-package-managers/nuget.md): the package-manager setup that points NuGet at the Seal Artifact Server.
