Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce21f13

Browse files
committed
Skip GitVersion task if Version is set
1 parent 2319e8f commit ce21f13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/build.proj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
<CallTarget Targets="Package" />
2626
</Target>
2727

28-
<Target Name="GitVersion" DependsOnTargets="RestorePackages">
29-
<GitVersionTask.GetVersion SolutionDirectory=".." Condition=" '$(Version)' == '' ">
28+
<Target Name="GitVersion" DependsOnTargets="RestorePackages" Condition=" '$(Version)' == '' ">
29+
<GitVersionTask.GetVersion SolutionDirectory="..">
3030
<Output TaskParameter="NuGetVersion" PropertyName="Version" />
3131
</GitVersionTask.GetVersion>
3232
</Target>

0 commit comments

Comments
 (0)