SemanticRelease.DotNet
1.0.3
dotnet add package SemanticRelease.DotNet --version 1.0.3
NuGet\Install-Package SemanticRelease.DotNet -Version 1.0.3
<PackageReference Include="SemanticRelease.DotNet" Version="1.0.3" />
<PackageVersion Include="SemanticRelease.DotNet" Version="1.0.3" />
<PackageReference Include="SemanticRelease.DotNet" />
paket add SemanticRelease.DotNet --version 1.0.3
#r "nuget: SemanticRelease.DotNet, 1.0.3"
#:package SemanticRelease.DotNet@1.0.3
#addin nuget:?package=SemanticRelease.DotNet&version=1.0.3
#tool nuget:?package=SemanticRelease.DotNet&version=1.0.3
SemanticRelease.DotNet
Inspired by the Node.js semantic-release tool, this was designed to make versioning and releasing .NET packages easy
Overview
This plugin serves as the tool for running dotnet
commands (build
, restore
, pack
, publish
) based on configured options.
Features
- Configurable commands
- Automatic use of the updated version (if used after determining the next version)
Requirements
- .NET Standard 2.1 or later
- C# 8.0 or later
Usage
The base semantic-release tool handles all package resolution automatically (including downloading plugins from NuGet!) All you have to do is configure the plugin!
- Using the default configuration
{
// base configuration
"pluginConfigs": [
"SemanticRelease.DotNet"
]
}
- Using custom configuration
{
"pluginConfigs": [
{
"name": "SemanticRelease.DotNet",
"options": {
// Options should be provided here
}
}
]
}
Options
Name | Description | Default Value | Required |
---|---|---|---|
build |
Whether the plugin should build the project | true |
❌ |
restore |
Whether the plugin should restore NuGet packages | true |
❌ |
publish |
Whether the plugin should try to publish publishable projects | false |
❌ |
pack |
Whether the plugin should try to pack projects into NuGet packages | false |
❌ |
useSkipFlags |
Injects --no-build and --no-restore into dotnet commands |
true |
❌ |
configuration |
Which configuration to use for build , pack , and publish |
null |
✅ |
outputDir |
Where pack should put the associated package files |
null |
❌ |
slnOrProject |
The solution or project that you want to build. Glob patterns are not accepted at this time | null |
❌ |
NOTE: outputDir
is NOT required and your artifacts will be placed in the appropriate location based on the pack
command.
The default location is bin/Release/<Framework>/
per the behavior of dotnet pack
.
License
This project is licensed under the MIT License—see the LICENSE file for more details
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- CliWrap (>= 3.9.0)
- JetBrains.Annotations (>= 2024.3.0)
- SemanticRelease.Abstractions (>= 1.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.