File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/GitVersionTask/NugetAssets Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 21
21
<UpdateAssemblyInfo Condition =" '$(UpdateAssemblyInfo)' == '' and '$(TargetFramework)' != '' " >false</UpdateAssemblyInfo >
22
22
<UpdateAssemblyInfo Condition =" '$(UpdateAssemblyInfo)' == '' and '$(NCrunch)' != '' " >false</UpdateAssemblyInfo >
23
23
<UpdateAssemblyInfo Condition =" '$(UpdateAssemblyInfo)' == '' " >true</UpdateAssemblyInfo >
24
-
24
+
25
25
<!-- Property that enables setting of Version -->
26
26
<UpdateVersionProperties Condition =" '$(UpdateVersionProperties)' == '' " >true</UpdateVersionProperties >
27
27
<UseFullSemVerForNuGet Condition =" '$(UseFullSemVerForNuGet)' == '' " >false</UseFullSemVerForNuGet >
48
48
<Target Name =" WriteVersionInfoToBuildLog" BeforeTargets =" CoreCompile;GetAssemblyVersion;GenerateNuspec" Condition =" $(WriteVersionInfoToBuildLog) == 'true'" >
49
49
<WriteVersionInfoToBuildLog SolutionDirectory =" $(GitVersionPath)" NoFetch =" $(GitVersion_NoFetchEnabled)" />
50
50
</Target >
51
-
51
+
52
52
<Target Name =" UpdateAssemblyInfo" BeforeTargets =" CoreCompile" Condition =" $(UpdateAssemblyInfo) == 'true'" >
53
53
<UpdateAssemblyInfo
54
54
SolutionDirectory =" $(GitVersionPath)"
66
66
<Compile Include =" $(AssemblyInfoTempFilePath)" />
67
67
</ItemGroup >
68
68
</Target >
69
-
69
+
70
70
<Target Name =" GetVersion" BeforeTargets =" CoreCompile;GetAssemblyVersion;GenerateNuspec;_GenerateRestoreProjectSpec;EnsureWixToolsetInstalled" Condition =" $(GetVersion) == 'true'" >
71
71
72
72
<GetVersion SolutionDirectory =" $(GitVersionPath)" NoFetch =" $(GitVersion_NoFetchEnabled)" >
95
95
<Output TaskParameter =" CommitsSinceVersionSource" PropertyName =" GitVersion_CommitsSinceVersionSource" />
96
96
<Output TaskParameter =" CommitsSinceVersionSourcePadded" PropertyName =" GitVersion_CommitsSinceVersionSourcePadded" />
97
97
</GetVersion >
98
-
98
+
99
99
<PropertyGroup Condition =" '$(UpdateVersionProperties)' == 'true' " >
100
100
<Version >$(GitVersion_FullSemVer)</Version >
101
101
<VersionPrefix >$(GitVersion_MajorMinorPatch)</VersionPrefix >
Original file line number Diff line number Diff line change 23
23
24
24
<GetVersion Condition =" '$(GetVersion)' == '' and '$(NCrunch)' != '' " >false</GetVersion >
25
25
<GetVersion Condition =" '$(GetVersion)' == '' " >true</GetVersion >
26
-
26
+
27
27
<!-- Property that enables setting of Version -->
28
28
<UpdateVersionProperties Condition =" '$(UpdateVersionProperties)' == '' " >true</UpdateVersionProperties >
29
29
<UseFullSemVerForNuGet Condition =" '$(UseFullSemVerForNuGet)' == '' " >false</UseFullSemVerForNuGet >
46
46
<Target Name =" WriteVersionInfoToBuildLog" BeforeTargets =" DispatchToInnerBuilds;GenerateNuspec;_GenerateRestoreProjectSpec" Condition =" $(WriteVersionInfoToBuildLog) == 'true'" >
47
47
<WriteVersionInfoToBuildLog SolutionDirectory =" $(GitVersionPath)" NoFetch =" $(GitVersion_NoFetchEnabled)" />
48
48
</Target >
49
-
49
+
50
50
<Target Name =" GetVersion" BeforeTargets =" DispatchToInnerBuilds;GenerateNuspec" Condition =" $(GetVersion) == 'true'" >
51
51
52
52
<GetVersion SolutionDirectory =" $(GitVersionPath)" NoFetch =" $(GitVersion_NoFetchEnabled)" >
75
75
<Output TaskParameter =" CommitsSinceVersionSource" PropertyName =" GitVersion_CommitsSinceVersionSource" />
76
76
<Output TaskParameter =" CommitsSinceVersionSourcePadded" PropertyName =" GitVersion_CommitsSinceVersionSourcePadded" />
77
77
</GetVersion >
78
-
78
+
79
79
<PropertyGroup Condition =" '$(UpdateVersionProperties)' == 'true' " >
80
80
<Version >$(GitVersion_FullSemVer)</Version >
81
81
<VersionPrefix >$(GitVersion_MajorMinorPatch)</VersionPrefix >
You can’t perform that action at this time.
0 commit comments