Skip to content

Commit 1707bbc

Browse files
authored
Merge pull request #2168 from tpaxatb/bugfix/targets
Issue #2167 Generated files not soon enough
2 parents 409a287 + c2d1080 commit 1707bbc

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/GitVersionTask/build/GitVersionTask.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
Ensure GetVersion runs prior to XAML's Markup Compiler in order to have the assembly version available.
4141
Otherwise the generated resource URI's are ambiguous when multiple versions are loaded simultaneously (i.e. in plugins)
4242
-->
43-
<MarkupCompilePass1DependsOn>$(MarkupCompilePass1DependsOn);GetVersion</MarkupCompilePass1DependsOn>
43+
<MarkupCompilePass1DependsOn>$(MarkupCompilePass1DependsOn);GetVersion;UpdateAssemblyInfo;GenerateGitVersionInformation</MarkupCompilePass1DependsOn>
4444
<GetPackageVersionDependsOn>$(GetPackageVersionDependsOn);GetVersion</GetPackageVersionDependsOn>
4545

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

src/GitVersionTask/build/GitVersionTask.targets

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,13 @@
3030

3131
<ItemGroup Condition="'$(Language)' == 'F#'">
3232
<CompileBefore Include="$(AssemblyInfoTempFilePath)" />
33+
<FileWrites Include="$(AssemblyInfoTempFilePath)" />
34+
<_GeneratedCodeFiles Include="$(AssemblyInfoTempFilePath)" />
3335
</ItemGroup>
3436
<ItemGroup Condition="'$(Language)' != 'F#'">
3537
<Compile Include="$(AssemblyInfoTempFilePath)" />
38+
<FileWrites Include="$(AssemblyInfoTempFilePath)" />
39+
<_GeneratedCodeFiles Include="$(AssemblyInfoTempFilePath)" />
3640
</ItemGroup>
3741

3842
</Target>
@@ -53,10 +57,12 @@
5357
<ItemGroup Condition="'$(Language)' == 'F#'">
5458
<CompileBefore Include="$(GitVersionInformationFilePath)" />
5559
<FileWrites Include="$(GitVersionInformationFilePath)" />
60+
<_GeneratedCodeFiles Include="$(GitVersionInformationFilePath)" />
5661
</ItemGroup>
5762
<ItemGroup Condition="'$(Language)' != 'F#'">
5863
<Compile Include="$(GitVersionInformationFilePath)" />
5964
<FileWrites Include="$(GitVersionInformationFilePath)" />
65+
<_GeneratedCodeFiles Include="$(GitVersionInformationFilePath)" />
6066
</ItemGroup>
6167
</Target>
6268

0 commit comments

Comments
 (0)