diff --git a/GitVersion.yml b/GitVersion.yml new file mode 100644 index 0000000..ed16160 --- /dev/null +++ b/GitVersion.yml @@ -0,0 +1,5 @@ +mode: ContinuousDelivery +branches: {} +ignore: + sha: [] +merge-message-formats: {} diff --git a/build/Build.cs b/build/Build.cs index a8f1e99..d537eac 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -99,11 +99,15 @@ internal class Build : NukeBuild private Target Pack => _ => _ .DependsOn(PublishCodeCoverage) + .Requires(() => Configuration == Configuration.Release) .Executes(() => { DotNetPack(s => s + .EnableNoRestore() + .EnableNoBuild() .SetProject(Solution.GetProject("MtgApiManager.Lib")) .SetConfiguration(Configuration) - .SetOutputDirectory(ArtifactsDirectory)); + .SetOutputDirectory(ArtifactsDirectory) + .SetVersion(GitVersion.NuGetVersionV2)); }); } \ No newline at end of file diff --git a/src/MtgApiManager.Lib/MtgApiManager.Lib.csproj b/src/MtgApiManager.Lib/MtgApiManager.Lib.csproj index a8374c8..42f6379 100644 --- a/src/MtgApiManager.Lib/MtgApiManager.Lib.csproj +++ b/src/MtgApiManager.Lib/MtgApiManager.Lib.csproj @@ -16,7 +16,6 @@ en icon.png MIT - 1.2.3 @@ -25,6 +24,10 @@ C:\Dev\code\mtg-sdk-dotnet\src\MtgApiManager.Lib\MtgApiManager.Lib.xml + + C:\Dev\code\mtg-sdk-dotnet\src\MtgApiManager.Lib\MtgApiManager.Lib.xml + + True