-
Notifications
You must be signed in to change notification settings - Fork 165
/
Copy pathAutoIncrementVersion.targets
40 lines (35 loc) · 1.61 KB
/
AutoIncrementVersion.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- The grammar files that will be compiled by the task -->
<ItemGroup>
<AssemblyInfoFiles Include="**\AssemblyInfo.cs"/>
</ItemGroup>
<!-- import the task assembly -->
<UsingTask AssemblyFile="$(SolutionDir)lib\BuildTasks.dll" TaskName="AutoIncrementVersionBuildTask"/>
<!-- Make sure the grammars are compiled before code compilation. -->
<PropertyGroup>
<CoreCompileDependsOn>
$(CoreCompileDependsOn);
AutoIncrementVersion
</CoreCompileDependsOn>
</PropertyGroup>
<!-- The target that autoincrements the version. The inputs and outputs are the same as the
CoreCompileDependsOn target to make sure we only increment the version if the project
is actually being built. -->
<Target Name="AutoIncrementVersion"
Inputs="$(MSBuildAllProjects);
@(Compile);
@(ManifestResourceWithNoCulture);
$(ApplicationIcon);
$(AssemblyOriginatorKeyFile);
@(ManifestNonResxWithNoCultureOnDisk);
@(ReferencePath);
@(CompiledLicenseFile);
@(EmbeddedDocumentation);
@(CustomAdditionalCompileInputs)"
Outputs="@(IntermediateAssembly)">
<AutoIncrementVersionBuildTask AssemblyInfoFiles="@(AssemblyInfoFiles)" />
<!--<Message Importance="high"
Text = "XXXPath: %(AntlrGrammarFiles.RootDir)%(AntlrGrammarFiles.Directory)%(AntlrGrammarFiles.FileName)_%(AntlrLibraryGrammarFiles.FileName).cs"/>-->
</Target>
</Project>