Fix reading of minimum MSBuild version
This commit is contained in:
parent
79c1c4cc9a
commit
ee91cb14ff
1 changed files with 3 additions and 1 deletions
|
@ -1207,11 +1207,13 @@ Copyright (c) .NET Foundation. All rights reserved.
|
|||
|
||||
<Target Name="GenerateBundledMSBuildProps" DependsOnTargets="SetupBundledComponents">
|
||||
<PropertyGroup>
|
||||
<MinimumMSBuildVersionFile>$(RedistLayoutPath)sdk/$(Version)/minimumMSBuildVersion</MinimumMSBuildVersionFile>
|
||||
<BundledMSBuildPropsFileName>Microsoft.NETCoreSdk.BundledMSBuildInformation.props</BundledMSBuildPropsFileName>
|
||||
<MinimumMSBuildVersionFile Condition="$([System.Text.RegularExpressions.Regex]::Match(%(SDKInternalFiles.Identity),'.*minimumMSBuildVersion').Success) ">%(SDKInternalFiles.Identity)</MinimumMSBuildVersionFile>
|
||||
<BundledMSBuildVersion>$(MSBuildVersion)</BundledMSBuildVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<Error Text="No MSBuild version file found under '$(RedistLayoutPath)sdk/$(Version)'" Condition="!Exists('$(MinimumMSBuildVersionFile)')" />
|
||||
|
||||
<ReadLinesFromFile File="$(MinimumMSBuildVersionFile)">
|
||||
<Output TaskParameter="Lines" PropertyName="MinimumMSBuildVersion"/>
|
||||
</ReadLinesFromFile>
|
||||
|
|
Loading…
Reference in a new issue