Publishing NuGet package for NetStandard 1.6 library

Answered

We have developed a .NET Core library that targets NetStandard 1.6.  We are successfully building and packaging the library using the 'dotnet pack' runner type/command combination.  And, we have configured the artifact paths sufficiently that the output of the build/pack is appearing as an artifact for the project.  But, when we browse NuGet packages in Visual Studio using TeamCity as the source, the package does not appear.  (We browse the NuGet packages from a NetStandard 1.6 project to ensure compatibility.)

Here’s a typical build log.  Notice that the package is being created, and published (the last three lines).

 

[22:40:31]Step 2/4: NuGet Package (.NET Core (dotnet))

[22:40:31][Step 2/4] Update assembly versions: Scanning checkout directory for assembly information related files to update version to 33

[22:40:31][Step 2/4] Starting: "C:\Program Files\dotnet\dotnet.exe" pack D:\TeamCity\work\aadab97fab241c41\UMG.MS.SharedLibrary\UMG.MS.Library.Logging.Core --configuration Release --output bin\Release\Output --version-suffix 1.0.33

[22:40:31][Step 2/4] in directory: D:\TeamCity\work\5c56b52d53e027f6

[22:40:31][Step 2/4] Project UMG.MS.Library.Logging.Core (.NETStandard,Version=v1.6) was previously compiled. Skipping compilation.

[22:40:31][Step 2/4] Producing nuget package "UMG.MS.Library.Logging.Core.1.0.0" for UMG.MS.Library.Logging.Core

[22:40:31][Step 2/4] UMG.MS.Library.Logging.Core -> D:\TeamCity\work\5c56b52d53e027f6\bin\Release\Output\UMG.MS.Library.Logging.Core.1.0.0.nupkg

[22:40:31][Step 2/4] Producing nuget package "UMG.MS.Library.Logging.Core.1.0.0.symbols" for UMG.MS.Library.Logging.Core

[22:40:31][Step 2/4] UMG.MS.Library.Logging.Core -> D:\TeamCity\work\5c56b52d53e027f6\bin\Release\Output\UMG.MS.Library.Logging.Core.1.0.0.symbols.nupkg

[22:40:31][Step 2/4] Process exited with code 0

[22:40:31]Publishing artifacts

[22:40:31][Publishing artifacts] Collecting files to publish: [bin\Release\Output\UMG.MS.Library.Logging.Core.1.0.0.nupkg]

[22:40:32][Publishing artifacts] Publishing 1 file [bin/Release/Output/UMG.MS.Library.Logging.Core.1.0.0.nupkg] using [WebPublisher]

[22:40:32][Publishing artifacts] Publishing 1 file [bin/Release/Output/UMG.MS.Library.Logging.Core.1.0.0.nupkg] using [ArtifactsCachePublisher]

[22:40:32]Build finished

 

Is there something else we need to do?

 

0
1 comment

Hi Kevin,

Please, make sure you followed the steps in our documentation to setup TeamCity as a NuGet server, which include a link to a blog post on a step by step tutorial. You can find the docs here:
https://confluence.jetbrains.com/display/TCD10/NuGet#NuGet-UsingTeamCityasNuGetServer

0

Please sign in to leave a comment.