Skip to content

Commit 91e5cf3

Browse files
committed
hiding the items for packaging for GitVersion.MsBuild
1 parent 35de674 commit 91e5cf3

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

build/pack.cake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ Task("Pack-Nuget")
6262
settings.ArgumentCustomization = arg => arg.Append("/p:PackAsTool=true");
6363
DotNetCorePack("./src/GitVersionExe/GitVersionExe.csproj", settings);
6464

65-
settings.ArgumentCustomization = null;
65+
settings.ArgumentCustomization = arg => arg.Append("/p:IsPackaging=true");
6666
DotNetCorePack("./src/GitVersion.MsBuild", settings);
67+
68+
settings.ArgumentCustomization = null;
6769
DotNetCorePack("./src/GitVersionCore", settings);
6870
});
6971

src/Directory.Build.props

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
44

55
<Authors>GitTools and Contributors</Authors>
6+
<Copyright>Copyright GitTools 2020.</Copyright>
7+
<Company>$(Authors)</Company>
8+
69
<PackageProjectUrl>https://github.com/GitTools/GitVersion</PackageProjectUrl>
710
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
811
<PackageTags>Git;Versioning;GitVersion;GitFlowVersion;GitFlow;GitHubFlow;SemVer</PackageTags>
9-
<Copyright>Copyright GitTools 2020.</Copyright>
1012
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1113
<PackageIcon>package_icon.png</PackageIcon>
1214
<PackageReleaseNotes>https://github.com/GitTools/GitVersion/releases</PackageReleaseNotes>
15+
1316
<RepositoryUrl>https://github.com/GitTools/GitVersion</RepositoryUrl>
1417
<RepositoryType>git</RepositoryType>
15-
<PackageReleaseNotes>https://github.com/GitTools/GitVersion/releases</PackageReleaseNotes>
16-
<Company>$(Authors)</Company>
18+
1719
<DebugType>embedded</DebugType>
1820
<LangVersion>8.0</LangVersion>
1921

src/GitVersion.MsBuild/nuget-files.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Target_net48>tools/net48</Target_net48>
77
<Target_netcore31>tools/netcoreapp3.1</Target_netcore31>
88
</PropertyGroup>
9-
<ItemGroup>
9+
<ItemGroup Condition="$(IsPackaging) != ''">
1010
<None Include="msbuild/tools/*.*" Pack="true" PackagePath="tools" />
1111
<None Include="msbuild/build/*.*" Pack="true" PackagePath="build" />
1212
<None Include="msbuild/buildMultiTargeting/*.*" Pack="true" PackagePath="buildMultiTargeting" />

0 commit comments

Comments
 (0)