In addition to building and creating NuGet packages (.nupkg
), the NuGet client also supports creating associated Symbol packages (.snupkg
or .symbols.nupkg
), that contain all the relevant symbol files for the NuGet package. The Symbol packages can be pushed to a Symbol Server, where the Symbol files can be indexed and consumed by the Visual Studio Debugger.
The Symbol package structure is similar to the NuGet package but contains the Symbol files instead of the source files.
To configure the NuGet CLI:
In the JFrog Platform, navigate to Application Module | Artifactory | Artifacts.
Select the NuGet repository you created,
Select Set Me Up.
In the Configure tab, set up the NuGet repository to work against the NuGet Client.
Add the following line to theNuGet.configfile.
In the Deploy tab, choose from one of the following Push options.
Push NuGet packages together with their related Symbol packages
When you run the
nuget push
command, if there is a Symbol package present in the same directory, then the Symbol package will be automatically pushed to the same location.As displayed in the following example.
nuget push mypackage.1.0.0.nupkg -Source ArtifactoryNuGetV3
Pushing NuGet Symbol packages only When you run the
nuget push
command, you can decide to push only Symbol packages by adding an āsā as the prefix to thenupkg
string.As displayed in the following example.
nuget push mypackage.1.0.0.snupkg -Source ArtifactoryNuGetV3