JetBrains.NuGet.Packaging 7.7.20260625.175

Prefix Reserved
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package JetBrains.NuGet.Packaging --version 7.7.20260625.175
                    
NuGet\Install-Package JetBrains.NuGet.Packaging -Version 7.7.20260625.175
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="JetBrains.NuGet.Packaging" Version="7.7.20260625.175" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JetBrains.NuGet.Packaging" Version="7.7.20260625.175" />
                    
Directory.Packages.props
<PackageReference Include="JetBrains.NuGet.Packaging" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add JetBrains.NuGet.Packaging --version 7.7.20260625.175
                    
#r "nuget: JetBrains.NuGet.Packaging, 7.7.20260625.175"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package JetBrains.NuGet.Packaging@7.7.20260625.175
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=JetBrains.NuGet.Packaging&version=7.7.20260625.175
                    
Install as a Cake Addin
#tool nuget:?package=JetBrains.NuGet.Packaging&version=7.7.20260625.175
                    
Install as a Cake Tool

Nuget.Packaging

NuGet.Packaging is a NuGet client SDK library that provides a set of APIs to interact with .nupkg and .nuspec files from a stream. It provides a way for developers to create and read packages and work with the package metadata.

Usage

It is strongly recommended that NuGet packages are created using the official NuGet tooling and instead of this low-level API. There are a variety of characteristics important for a well-formed package and the latest version of tooling helps incorporate these best practices.

For more information about creating NuGet packages, see the overview of the package creation workflow and the documentation for official pack tooling (for example, using the dotnet CLI).

Examples

Create a package

Create a package, set metadata, and add dependencies.

PackageBuilder builder = new PackageBuilder();
builder.Id = "MyPackage";
builder.Version = new NuGetVersion("1.0.0-beta");
builder.Description = "My package created from the API.";
builder.Authors.Add("Sample author");
builder.DependencyGroups.Add(new PackageDependencyGroup(
    targetFramework: NuGetFramework.Parse("netstandard1.4"),
    packages: new[]
    {
        new PackageDependency("Newtonsoft.Json", VersionRange.Parse("10.0.1"))
    }));

using FileStream outputStream = new FileStream("MyPackage.nupkg", FileMode.Create);
builder.Save(outputStream);
Console.WriteLine($"Saved a package to {outputStream.Name}");

Read a package

Read a package from a file.

using FileStream inputStream = new FileStream("MyPackage.nupkg", FileMode.Open);
using PackageArchiveReader reader = new PackageArchiveReader(inputStream);
NuspecReader nuspec = reader.NuspecReader;
Console.WriteLine($"ID: {nuspec.GetId()}");
Console.WriteLine($"Version: {nuspec.GetVersion()}");
Console.WriteLine($"Description: {nuspec.GetDescription()}");
Console.WriteLine($"Authors: {nuspec.GetAuthors()}");

Console.WriteLine("Dependencies:");
foreach (PackageDependencyGroup dependencyGroup in nuspec.GetDependencyGroups())
{
    Console.WriteLine($" - {dependencyGroup.TargetFramework.GetShortFolderName()}");
    foreach (var dependency in dependencyGroup.Packages)
    {
        Console.WriteLine($"   > {dependency.Id} {dependency.VersionRange}");
    }
}

Additional documentation

More information about the NuGet.Packaging library can be found on the official Microsoft documentation page and NuGet API docs.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (11)

Showing the top 5 NuGet packages that depend on JetBrains.NuGet.Packaging:

Package Downloads
JetBrains.Platform.Core.Ide

JetBrains Platform Core Ide Package Version 233.0.20240606.111243

JetBrains.Psi.Features.UnitTesting

JetBrains Psi Features UnitTesting Package Version 233.0.20240606.112012

JetBrains.Platform.Interop.dotMemoryUnit.Interop.Ide

JetBrains Platform Interop dotMemoryUnit Interop Ide Package Version 232.0.20240606.110759

JetBrains.Psi.Features.test.Framework

JetBrains Psi Features test Framework Package Version 233.0.20240606.112012

JetBrains.Platform.Tests.Framework

JetBrains Platform Tests Framework Package Version 233.0.20240606.111243

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on JetBrains.NuGet.Packaging:

Repository Stars
JetBrains/resharper-unity
Unity support for both ReSharper and Rider
Version Downloads Last Updated
Loading failed