SS.NuGet.Publish
1.0.2311.32
dotnet add package SS.NuGet.Publish --version 1.0.2311.32
NuGet\Install-Package SS.NuGet.Publish -Version 1.0.2311.32
<PackageReference Include="SS.NuGet.Publish" Version="1.0.2311.32"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add SS.NuGet.Publish --version 1.0.2311.32
#r "nuget: SS.NuGet.Publish, 1.0.2311.32"
// Install SS.NuGet.Publish as a Cake Addin #addin nuget:?package=SS.NuGet.Publish&version=1.0.2311.32 // Install SS.NuGet.Publish as a Cake Tool #tool nuget:?package=SS.NuGet.Publish&version=1.0.2311.32
SS.NuGet.Publish
Automate publishing a project's NuGet package during build process.
Usage
To use the package, you need to add the SS.NuGet.Publish NuGet package to your project. Then configure accordingly in the .csproj file.
Project file properties
- NuGetPublishVersion (Optional)
- Version of Nuget.exe to use. Defaults to 6.8.0
- NuGetPublishPath (Optional)
- Path to cache the Nuget.exe locally. Defaults to %UserProfile%\.nuget\{NuGetPublishVersion}\
- NuGetPublishType (Optional)
- Either remote or local. Will try to auto detect if NuGetPublishLocation is a url (begins with http), defaults to local if NuGetPublishLocation is not a url.
- NuGetPublishLocation
- Valid URL or path to publish the NuGet package to
- NuGetPublishSkipDuplicate
- Set to true to add the
-SkipDuplicate
command line option for nuget push command.
- Set to true to add the
How it works
- If not already cached, it will download a copy of nuget.exe from https://dist.nuget.org/win-x86-commandline/v{NuGetPublishVersion}/nuget.exe into
NuGetPublishPath
- Publish
- If
NuGetPublishType = remote
ORNuGetPublishLocation
starts with http, it executes nuget.exe using push command toNuGetPublishLocation
as the source - If
NuGetPublishType = local
ORNuGetPublishLocation
does not start with http, it executes nuget.exe using add command toNuGetPublishLocation
as the source - Manually setting
NuGetPublishType
disables the auto-detection of publishing type.
- If
Note:
IfNuGetPublishLocation
is not defined, no publish is attempted.
IfNuGetPublishType
is set to remote, thenNuGetPublishLocation
must be a valid URL to a NuGet repo.
IfNuGetPublishType
is set to local, thenNuGetPublishLocation
must be a valid local folder or UNC path.
If you're publishing to a remote site, like NuGet.org, you will need to set your API Key prior to publishing. Follow the instructions here to learn how to accomplish this.
Examples
<PropertyGroup>
<NuGetPublishType>remote</NuGetPublishType>
<NuGetPublishLocation>https://api.nuget.org/v3/index.json</NuGetPublishLocation>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NuGetPublishLocation>D:\references\packages</NuGetPublishLocation>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NuGetPublishType>remote</NuGetPublishType>
<NuGetPublishLocation>https://api.nuget.org/v3/index.json</NuGetPublishLocation>
</PropertyGroup>
</project>
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages (5)
Showing the top 5 NuGet packages that depend on SS.NuGet.Publish:
Package | Downloads |
---|---|
Levero.DeviceService.Core
Device Service Host which can load devices at runtime by configuration |
|
Levero.Common
Common used code |
|
Levero.Persistence
Base classes for persistence, data access layer and schema generator |
|
Levero.DeviceService.SerialPort
Base device with SerialPort-Implementation |
|
Levero.ALM
Handles application lifecycle management tasks (build, upload, release, deploy, inventory, update) |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.2311.32 | 506 | 11/18/2023 |
1.0.2311.29 | 155 | 11/18/2023 |
1.0.1912.22 | 7,773 | 12/29/2019 |
1.0.1912.20 | 534 | 12/29/2019 |
1.0.1907.15 | 637 | 7/13/2019 |