From 615db818bce4a57c642d06d4a292854b7ad0cbcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Ko=C5=BEelj?= Date: Wed, 28 Dec 2022 18:37:23 +0100 Subject: [PATCH] Add automatic nuget build to Connected.Rest Add automatic versioning to Connected.Rest --- src/Connected.Rest/Connected.Rest.csproj | 45 ++++++++++++++++++------ src/Connected.Rest/version.json | 14 ++++++++ 2 files changed, 49 insertions(+), 10 deletions(-) create mode 100644 src/Connected.Rest/version.json diff --git a/src/Connected.Rest/Connected.Rest.csproj b/src/Connected.Rest/Connected.Rest.csproj index c5fb14f..a918a67 100644 --- a/src/Connected.Rest/Connected.Rest.csproj +++ b/src/Connected.Rest/Connected.Rest.csproj @@ -5,22 +5,32 @@ enable enable $(MSBuildProjectName.Replace(" ", "_")) + True + $(AssemblyName) + Tom PIT ltd + 2022 Tom PIT ltd + https://git.tompit.com/Connected/Info + README.md + connected;platform; + True + snupkg + LICENSE + $(OutputPath) - + + + + + + - - - - - - - - - True @@ -36,4 +46,19 @@ + + + True + \ + + + True + \ + + + + + + + diff --git a/src/Connected.Rest/version.json b/src/Connected.Rest/version.json new file mode 100644 index 0000000..2a1593f --- /dev/null +++ b/src/Connected.Rest/version.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json", + "version": "1.0-prerelease", + "semVer1NumericIdentifierPadding": 4, + "nugetPackageVersion": { + "semVer": 2, // optional. Set to either 1 or 2 to control how the NuGet package version string is generated. Default is 1. + "precision": "build" // optional. Use when you want to use a more or less precise package version than the default major.minor.build. + }, + "cloudBuild": { + "buildNumber": { + "enabled": true + } + } +} \ No newline at end of file