From fcf4e223f705801615941361ac2ca25fab0aacd1 Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Wed, 17 Jul 2024 14:42:59 +0100 Subject: [PATCH 1/2] version based on branch and more git locally --- Directory.Build.props | 6 +++--- GitVersion.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 30ea1ac1..8bcb8f1c 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -24,6 +24,9 @@ true + + + true $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb speckle @@ -34,9 +37,6 @@ $(MSBuildThisFileDirectory) true - - - README.md Apache-2.0 diff --git a/GitVersion.yml b/GitVersion.yml index 8c39817c..96532bca 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,5 +1,5 @@ next-version: 3.0.0 -mode: ContinuousDelivery +mode: ContinuousDeployment assembly-informational-format: "{Major}.{Minor}.{Patch}-{PreReleaseTag}" branches: main: From 18ad5f5c115e8f62d63b0981dcb190a834ba882a Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Wed, 17 Jul 2024 14:44:21 +0100 Subject: [PATCH 2/2] do pack local --- build/Program.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/Program.cs b/build/Program.cs index c791a943..bb199808 100644 --- a/build/Program.cs +++ b/build/Program.cs @@ -11,6 +11,7 @@ const string BUILD = "build"; const string TEST = "test"; const string INTEGRATION = "integration"; const string PACK = "pack"; +const string PACK_LOCAL = "pack-local"; Target( CLEAN, @@ -83,7 +84,10 @@ Target( } ); -Target(PACK, DependsOn(TEST), () => RunAsync("dotnet", "pack Speckle.Sdk.sln -c Release -o output --no-build")); +static Task RunRestore() => RunAsync("dotnet", "pack Speckle.Sdk.sln -c Release -o output --no-build"); + +Target(PACK, DependsOn(TEST), RunRestore); +Target(PACK_LOCAL, DependsOn(BUILD), RunRestore); Target("default", DependsOn(FORMAT, TEST, INTEGRATION), () => Console.WriteLine("Done!"));