Skip to content

Commit 84fbf5e

Browse files
authored
Merge pull request #1193 from onovotny/ncrunch
Better default support for NCrunch
2 parents a234cac + 797b204 commit 84fbf5e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/GitVersionTask/NugetAssets/build/GitVersionTask.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,20 @@
1313
<GitVersion_NoFetchEnabled Condition="$(GitVersion_NoFetchEnabled) == ''">false</GitVersion_NoFetchEnabled>
1414

1515
<!-- Property that enables WriteVersionInfoToBuildLog -->
16+
<WriteVersionInfoToBuildLog Condition=" '$(WriteVersionInfoToBuildLog)' == '' and '$(NCrunch)' != '' ">false</WriteVersionInfoToBuildLog>
1617
<WriteVersionInfoToBuildLog Condition=" '$(WriteVersionInfoToBuildLog)' == '' ">true</WriteVersionInfoToBuildLog>
1718

1819
<!-- Property that enables UpdateAssemblyInfo. Default to off for SDK builds -->
1920
<UpdateAssemblyInfo Condition=" '$(UpdateAssemblyInfo)' == '' and '$(TargetFramework)' != '' ">false</UpdateAssemblyInfo>
21+
<UpdateAssemblyInfo Condition=" '$(UpdateAssemblyInfo)' == '' and '$(NCrunch)' != '' ">false</UpdateAssemblyInfo>
2022
<UpdateAssemblyInfo Condition=" '$(UpdateAssemblyInfo)' == '' ">true</UpdateAssemblyInfo>
2123

2224
<!-- Property that enables setting of Version -->
2325
<UpdateVersionProperties Condition=" '$(UpdateVersionProperties)' == '' ">true</UpdateVersionProperties>
2426
<UseFullSemVerForNuGet Condition=" '$(UseFullSemVerForNuGet)' == '' ">false</UseFullSemVerForNuGet>
2527

2628
<!-- Property that enables GetVersion -->
29+
<GetVersion Condition=" '$(GetVersion)' == '' and '$(NCrunch)' != '' ">false</GetVersion>
2730
<GetVersion Condition=" '$(GetVersion)' == '' ">true</GetVersion>
2831

2932
<GitVersionTaskLibrary>$(MSBuildThisFileDirectory)</GitVersionTaskLibrary>

src/GitVersionTask/NugetAssets/buildMultiTargeting/GitVersionTask.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@
1212
<GitVersion_NoFetchEnabled Condition="$(GitVersion_NoFetchEnabled) == ''">false</GitVersion_NoFetchEnabled>
1313

1414
<!-- Property that enables WriteVersionInfoToBuildLog -->
15+
<WriteVersionInfoToBuildLog Condition=" '$(WriteVersionInfoToBuildLog)' == '' and '$(NCrunch)' != '' ">false</WriteVersionInfoToBuildLog>
1516
<WriteVersionInfoToBuildLog Condition=" '$(WriteVersionInfoToBuildLog)' == '' ">true</WriteVersionInfoToBuildLog>
1617

1718
<!-- Property that enables UpdateAssemblyInfo. Default to off for SDK builds -->
1819
<UpdateAssemblyInfo Condition=" '$(UpdateAssemblyInfo)' == '' and '$(TargetFramework)' != '' ">false</UpdateAssemblyInfo>
20+
<UpdateAssemblyInfo Condition=" '$(UpdateAssemblyInfo)' == '' and '$(NCrunch)' != '' ">false</UpdateAssemblyInfo>
1921
<UpdateAssemblyInfo Condition=" '$(UpdateAssemblyInfo)' == '' ">true</UpdateAssemblyInfo>
2022

23+
<GetVersion Condition=" '$(GetVersion)' == '' and '$(NCrunch)' != '' ">false</GetVersion>
2124
<GetVersion Condition=" '$(GetVersion)' == '' ">true</GetVersion>
2225

2326
<!-- Property that enables setting of Version -->

0 commit comments

Comments
 (0)