|
3 | 3 | <PropertyGroup> |
4 | 4 | <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)..\</SolutionDir> |
5 | 5 | </PropertyGroup> |
| 6 | + <PropertyGroup> |
| 7 | + <GitVersionAppendRevision Condition="$(GitVersionAppendRevision) == '' Or $(GitVersionAppendRevision) == '*Undefined*'">false</GitVersionAppendRevision> |
| 8 | + </PropertyGroup> |
6 | 9 |
|
7 | 10 | <UsingTask |
8 | 11 | TaskName="GitVersionTask.UpdateAssemblyInfo" |
9 | 12 | AssemblyFile="$(MSBuildThisFileDirectory)..\GitVersionTask.dll" /> |
| 13 | + <UsingTask |
| 14 | + TaskName="GitVersionTask.GetVersion" |
| 15 | + AssemblyFile="$(MSBuildThisFileDirectory)..\GitVersionTask.dll" /> |
10 | 16 | <UsingTask |
11 | 17 | TaskName="GitVersionTask.WriteVersionInfoToBuildLog" |
12 | 18 | AssemblyFile="$(MSBuildThisFileDirectory)..\GitVersionTask.dll" /> |
13 | 19 |
|
14 | | - <Target Name="UpdateAssemblyInfo" |
15 | | - BeforeTargets="CoreCompile"> |
16 | | - <WriteVersionInfoToBuildLog |
17 | | - SolutionDirectory="$(SolutionDir)" |
| 20 | + <Target Name="UpdateAssemblyInfo" |
| 21 | + BeforeTargets="CoreCompile"> |
| 22 | + <WriteVersionInfoToBuildLog |
| 23 | + SolutionDirectory="$(SolutionDir)" |
18 | 24 | /> |
19 | | - <UpdateAssemblyInfo |
20 | | - SolutionDirectory="$(SolutionDir)" |
21 | | - AssemblyName="$(AssemblyName)" |
22 | | - ProjectFile="$(ProjectPath)" |
23 | | - SignAssembly="$(SignAssembly)" |
24 | | - CompileFiles ="@(Compile)"> |
25 | | - <Output |
26 | | - TaskParameter="AssemblyInfoTempFilePath" |
27 | | - PropertyName="AssemblyInfoTempFilePath" /> |
28 | | - </UpdateAssemblyInfo> |
29 | | - |
30 | | - <ItemGroup> |
31 | | - <Compile Include="$(AssemblyInfoTempFilePath)" /> |
32 | | - </ItemGroup> |
33 | | - </Target> |
| 25 | + <UpdateAssemblyInfo |
| 26 | + SolutionDirectory="$(SolutionDir)" |
| 27 | + ProjectFile="$(ProjectPath)" |
| 28 | + AppendRevision="$(GitVersionAppendRevision)" |
| 29 | + CompileFiles ="@(Compile)"> |
| 30 | + <Output |
| 31 | + TaskParameter="AssemblyInfoTempFilePath" |
| 32 | + PropertyName="AssemblyInfoTempFilePath" /> |
| 33 | + </UpdateAssemblyInfo> |
| 34 | + |
| 35 | + <ItemGroup> |
| 36 | + <Compile Include="$(AssemblyInfoTempFilePath)" /> |
| 37 | + </ItemGroup> |
| 38 | + |
| 39 | + |
| 40 | + <GetVersion SolutionDirectory="$(SolutionDir)"> |
| 41 | + <Output TaskParameter="Major" PropertyName="GfvMajor" /> |
| 42 | + <Output TaskParameter="Minor" PropertyName="GfvMinor" /> |
| 43 | + <Output TaskParameter="Patch" PropertyName="GfvPatch" /> |
| 44 | + <Output TaskParameter="BuildMetaData" PropertyName="GfvBuildMetaData" /> |
| 45 | + <Output TaskParameter="FullBuildMetaData" PropertyName="GfvFullBuildMetaData" /> |
| 46 | + <Output TaskParameter="BranchName" PropertyName="GfvBranchName" /> |
| 47 | + <Output TaskParameter="Sha" PropertyName="GfvSha" /> |
| 48 | + <Output TaskParameter="MajorMinorPatch" PropertyName="GfvMajorMinorPatch" /> |
| 49 | + <Output TaskParameter="SemVer" PropertyName="GfvSemVer" /> |
| 50 | + <Output TaskParameter="LegacySemVer" PropertyName="GfvLegacySemVer" /> |
| 51 | + <Output TaskParameter="LegacySemVerPadded" PropertyName="GfvLegacySemVerPadded" /> |
| 52 | + <Output TaskParameter="FullSemVer" PropertyName="GfvFullSemVer" /> |
| 53 | + <Output TaskParameter="AssemblySemVer" PropertyName="GfvAssemblySemVer" /> |
| 54 | + <Output TaskParameter="ClassicVersion" PropertyName="GfvClassicVersion" /> |
| 55 | + <Output TaskParameter="ClassicVersionWithTag" PropertyName="GfvClassicVersionWithTag" /> |
| 56 | + <Output TaskParameter="PreReleaseTag" PropertyName="GfvPreReleaseTag" /> |
| 57 | + <Output TaskParameter="PreReleaseTagWithDash" PropertyName="GfvPreReleaseTagWithDash" /> |
| 58 | + <Output TaskParameter="InformationalVersion" PropertyName="GfvInformationalVersion" /> |
| 59 | + <Output TaskParameter="AssemblyVersion" PropertyName="GfvAssemblyVersion" /> |
| 60 | + <Output TaskParameter="AssemblyFileVersion" PropertyName="GfvAssemblyFileVersion" /> |
| 61 | + <Output TaskParameter="OriginalRelease" PropertyName="GfvOriginalRelease" /> |
| 62 | + </GetVersion> |
| 63 | + |
| 64 | + </Target> |
34 | 65 |
|
35 | 66 | <!--Support for ncrunch--> |
36 | 67 | <ItemGroup> |
37 | 68 | <None Include="$(MSBuildThisFileDirectory)..\GitVersionTask.dll" /> |
38 | 69 | <None Include="$(MSBuildThisFileDirectory)..\GitVersionTask.pdb" /> |
39 | | - <None Include="$(MSBuildThisFileDirectory)..\GitVersion.exe" /> |
40 | | - <None Include="$(MSBuildThisFileDirectory)..\GitVersion.pdb" /> |
41 | | - <None Include="$(MSBuildThisFileDirectory)..\LibGit2Sharp.dll" /> |
42 | 70 | <None Include="$(MSBuildThisFileDirectory)..\NativeBinaries\**\*" /> |
43 | 71 | </ItemGroup> |
44 | 72 |
|
45 | | - |
46 | 73 | </Project> |
47 | 74 |
|
48 | 75 |
|
0 commit comments