C#C
C#3y ago
whgrs1692

Visual studio - where are nuget packages published ?

To generate a NuGet package from a project, you can follow these steps:

Decide which assemblies to package: Most general-purpose packages contain one or more assemblies that other developers can use in their own projects1.

Create a .nuspec file: The .nuspec file contains the metadata for the package. You can create this file by running the nuget spec command in your terminal1.

Configure the .nuspec file: Open the .nuspec file and add the necessary tags. For example, you might need to add a <files> tag to specify which files to include in the package2.

Run the pack command: Once you have configured the .nuspec file, you can generate the .nupkg file by running the nuget pack command in your terminal1.

Please note that these steps are for non-SDK-style projects, typically projects other than .NET Core and .NET Standard projects1. For .NET Core and .NET Standard projects that use the SDK-style format, and any other SDK-style projects, you can use the dotnet pack command3.
Was this page helpful?