File tree 2 files changed +4
-3
lines changed
TurnerSoftware.BuildVersioning/build
TurnerSoftware.BuildVersioning.Tool
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 18
18
</PropertyGroup >
19
19
20
20
<PropertyGroup >
21
+ <_BuildVersioningToolRuntime >$(TargetFramework)</_BuildVersioningToolRuntime >
21
22
<BuildVersioningToolBasePath >$(MSBuildThisFileDirectory)bin/$(Configuration)</BuildVersioningToolBasePath >
22
23
<SelfHostedBuildVersioning Condition =" $(DesignTimeBuild) != 'true' AND $(SkipBuildVersioning) != 'true'" >true</SelfHostedBuildVersioning >
23
24
</PropertyGroup >
Original file line number Diff line number Diff line change 25
25
<_BuildVersioningMessagePrefix >Build Versioning ($(BuildVersioningProjectReference))</_BuildVersioningMessagePrefix >
26
26
</PropertyGroup >
27
27
28
- <Target Name =" DetectBuildVersioningToolRuntime" Condition = " $(_BuildVersioningToolRuntime) == '' " BeforeTargets =" BeforeBuild" >
29
- <Exec Command =" dotnet --info" ConsoleToMSBuild =" true" StandardOutputImportance =" Low" ContinueOnError =" true" >
28
+ <Target Name =" DetectBuildVersioningToolRuntime" BeforeTargets =" BeforeBuild" >
29
+ <Exec Condition = " $(_BuildVersioningToolRuntime) == '' " Command =" dotnet --info" ConsoleToMSBuild =" true" StandardOutputImportance =" Low" ContinueOnError =" true" >
30
30
<Output TaskParameter =" ConsoleOutput" PropertyName =" _DotnetInfo" />
31
31
</Exec >
32
- <PropertyGroup >
32
+ <PropertyGroup Condition = " $(_DotnetInfo) != '' " >
33
33
<_BuildVersioningToolRuntime Condition =" $(_DotnetInfo.Contains(" NETCore.App 5.0" ))" >net5.0</_BuildVersioningToolRuntime >
34
34
<_BuildVersioningToolRuntime Condition =" $(_DotnetInfo.Contains(" NETCore.App 6.0" ))" >net6.0</_BuildVersioningToolRuntime >
35
35
</PropertyGroup >
You can’t perform that action at this time.
0 commit comments