NuGet
Jump to navigation
Jump to search
NuGet is a Windows packaging system. A cross-platform implementation exists for Linux and Mac.
# Ubuntu install
sudo apt-get install nuget #mono environment will get installed as well as a dependency
# Add nuget source
# http://10.0.0.10:8111/httpAuth/app/nuget/v1/FeedService.svc/ it's TeamCity NuGet Feed
nuget sources add -name AppStack -source http://10.0.0.10:8111/httpAuth/app/nuget/v1/FeedService.svc/ -UserName nugetfeed -Password "Password123"
nuget source list
Registered Sources:
1. https://www.nuget.org/api/v2/ [Enabled]
https://www.nuget.org/api/v2/
2. ApiStack [Enabled]
http://10.0.0.10:8111/httpAuth/app/nuget/v1/FeedService.svc/
nuget source remove -Name ApiStack
Package source with Name: ApiStack removed successfully.
nuget list -Source ApiApp
MSBuild auto-detection: using msbuild version '15.8.169.51996' from 'C:\Program Files (x86)\Microsoft VisualStudio\2017\Professional\MSBuild\15.0\bin'.
Using credentials from config. UserName: nugetfeed
App1 1.0.1
App2 1.0.2
App3 2.0.1