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
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SS.NuGet.Publish" Version="1.0.2311.32">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SS.NuGet.Publish --version 1.0.2311.32
#r "nuget: SS.NuGet.Publish, 1.0.2311.32"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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.

Build status

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.

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 OR NuGetPublishLocation starts with http, it executes nuget.exe using push command to NuGetPublishLocation as the source
    • If NuGetPublishType = local OR NuGetPublishLocation does not start with http, it executes nuget.exe using add command to NuGetPublishLocation as the source
    • Manually setting NuGetPublishType disables the auto-detection of publishing type.

Note:
If NuGetPublishLocation is not defined, no publish is attempted.
If NuGetPublishType is set to remote, then NuGetPublishLocation must be a valid URL to a NuGet repo.
If NuGetPublishType is set to local, then NuGetPublishLocation 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>
There are no supported framework assets in this package.

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 330 11/18/2023
1.0.2311.29 129 11/18/2023
1.0.1912.22 7,318 12/29/2019
1.0.1912.20 527 12/29/2019
1.0.1907.15 626 7/13/2019