Skip to content

Commit 3b10296

Browse files
Merge branch 'master' into pr/release-branch-should-not-patch
2 parents c200fa0 + ef652c1 commit 3b10296

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/GitVersionTask/build/GitVersionTask.targets

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
<Output TaskParameter="AssemblyInfoTempFilePath" PropertyName="AssemblyInfoTempFilePath" />
2626
</UpdateAssemblyInfo>
2727

28-
<ItemGroup>
28+
<ItemGroup Condition="'$(Language)' == 'F#'">
29+
<CompileBefore Include="$(AssemblyInfoTempFilePath)" />
30+
</ItemGroup>
31+
<ItemGroup Condition="'$(Language)' != 'F#'">
2932
<Compile Include="$(AssemblyInfoTempFilePath)" />
3033
</ItemGroup>
3134

@@ -44,14 +47,17 @@
4447
<Output TaskParameter="GitVersionInformationFilePath" PropertyName="GitVersionInformationFilePath" />
4548
</GenerateGitVersionInformation>
4649

47-
<ItemGroup>
50+
<ItemGroup Condition="'$(Language)' == 'F#'">
51+
<CompileBefore Include="$(GitVersionInformationFilePath)" />
52+
<FileWrites Include="$(GitVersionInformationFilePath)" />
53+
</ItemGroup>
54+
<ItemGroup Condition="'$(Language)' != 'F#'">
4855
<Compile Include="$(GitVersionInformationFilePath)" />
4956
<FileWrites Include="$(GitVersionInformationFilePath)" />
5057
</ItemGroup>
51-
5258
</Target>
5359

54-
<Target Name="GetVersion" BeforeTargets="CoreCompile;GetAssemblyVersion;GenerateNuspec;_GenerateRestoreProjectSpec;_GetOutputItemsFromPack;EnsureWixToolsetInstalled" Condition="$(GetVersion) == 'true'">
60+
<Target Name="GetVersion" BeforeTargets="CoreCompile;GetAssemblyVersion;GenerateNuspec;_GenerateRestoreProjectSpec;_GetOutputItemsFromPack;EnsureWixToolsetInstalled" Condition="$(GetVersion) == 'true'">
5561

5662
<GetVersion SolutionDirectory="$(GitVersionPath)" ConfigFilePath="$(GitVersionConfig)" NoFetch="$(GitVersion_NoFetchEnabled)">
5763
<Output TaskParameter="Major" PropertyName="GitVersion_Major" />

0 commit comments

Comments
 (0)