Skip to content

Commit

Permalink
Adding GitVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
jregnier committed Nov 26, 2020
1 parent 9325869 commit fe7f8d1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mode: ContinuousDelivery
branches: {}
ignore:
sha: []
merge-message-formats: {}
6 changes: 5 additions & 1 deletion build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
}
5 changes: 4 additions & 1 deletion src/MtgApiManager.Lib/MtgApiManager.Lib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<NeutralLanguage>en</NeutralLanguage>
<PackageIcon>icon.png</PackageIcon>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Version>1.2.3</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand All @@ -25,6 +24,10 @@
<DocumentationFile>C:\Dev\code\mtg-sdk-dotnet\src\MtgApiManager.Lib\MtgApiManager.Lib.xml</DocumentationFile>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DocumentationFile>C:\Dev\code\mtg-sdk-dotnet\src\MtgApiManager.Lib\MtgApiManager.Lib.xml</DocumentationFile>
</PropertyGroup>

<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
Expand Down

0 comments on commit fe7f8d1

Please sign in to comment.