File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
TurnerSoftware.BuildVersioning.Tool
TurnerSoftware.BuildVersioning/build Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1818 </PropertyGroup >
1919
2020 <PropertyGroup >
21+ <_BuildVersioningToolRuntime >$(TargetFramework)</_BuildVersioningToolRuntime >
2122 <BuildVersioningToolBasePath >$(MSBuildThisFileDirectory)bin/$(Configuration)</BuildVersioningToolBasePath >
2223 <SelfHostedBuildVersioning Condition =" $(DesignTimeBuild) != 'true' AND $(SkipBuildVersioning) != 'true'" >true</SelfHostedBuildVersioning >
2324 </PropertyGroup >
Original file line number Diff line number Diff line change 2525 <_BuildVersioningMessagePrefix >Build Versioning ($(BuildVersioningProjectReference))</_BuildVersioningMessagePrefix >
2626 </PropertyGroup >
2727
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" >
3030 <Output TaskParameter =" ConsoleOutput" PropertyName =" _DotnetInfo" />
3131 </Exec >
32- <PropertyGroup >
32+ <PropertyGroup Condition = " $(_DotnetInfo) != '' " >
3333 <_BuildVersioningToolRuntime Condition =" $(_DotnetInfo.Contains(" NETCore.App 5.0" ))" >net5.0</_BuildVersioningToolRuntime >
3434 <_BuildVersioningToolRuntime Condition =" $(_DotnetInfo.Contains(" NETCore.App 6.0" ))" >net6.0</_BuildVersioningToolRuntime >
3535 </PropertyGroup >
You can’t perform that action at this time.
0 commit comments