From 375c41ff84372c132ebfab792a19c7229dd57bb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Ko=C5=BEelj?= Date: Fri, 30 Dec 2022 10:11:57 +0100 Subject: [PATCH] Add automatic nuget build to Connected.Common Add automatic versioning to Connected.Common --- src/Connected.Common/Connected.Common.csproj | 86 +++++++++++++------- src/Connected.Common/version.json | 14 ++++ 2 files changed, 70 insertions(+), 30 deletions(-) create mode 100644 src/Connected.Common/version.json diff --git a/src/Connected.Common/Connected.Common.csproj b/src/Connected.Common/Connected.Common.csproj index b21e779..86318ec 100644 --- a/src/Connected.Common/Connected.Common.csproj +++ b/src/Connected.Common/Connected.Common.csproj @@ -1,36 +1,62 @@ - + - - net7.0 - enable - enable - $(MSBuildProjectName) - + + net7.0 + enable + enable + True + $(AssemblyName) + Tom PIT ltd + 2022 Tom PIT ltd + https://git.tompit.com/Connected/Info + README.md + connected;platform; + True + snupkg + LICENSE + $(OutputPath) + - - - - - - - - - + + + + + + + - - - True - True - SR.resx - - + + + True + True + SR.resx + + - - - ResXFileCodeGenerator - SR.Designer.cs - - - + + + ResXFileCodeGenerator + SR.Designer.cs + + + + + + True + \ + + + True + \ + + + + + + + diff --git a/src/Connected.Common/version.json b/src/Connected.Common/version.json new file mode 100644 index 0000000..2a1593f --- /dev/null +++ b/src/Connected.Common/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