maandag 6 mei 2019

push nuget package from vscode

nuget works with csproj file to create nuget package
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
 <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
 <Version>1.0.3</Version>
 </PropertyGroup>

Will create [Assemblyname].1.0.3.nupkg file in configuration folder to build (dotnet build -c "Release")
from commandline
dotnet nuget push -s Source -k personal Tests.1.0.5.nupkg

be sure there is a nuget.config file in the root of your project with the sources you will restore / push the packages from

see: http://patrickvos.blogspot.com/2019/05/package-sources-in-vs-code.html


Geen opmerkingen:

Een reactie posten