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">
|
<Target Name="GenerateBundledMSBuildProps" DependsOnTargets="SetupBundledComponents">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<MinimumMSBuildVersionFile>$(RedistLayoutPath)sdk/$(Version)/minimumMSBuildVersion</MinimumMSBuildVersionFile>
|
||||||
<BundledMSBuildPropsFileName>Microsoft.NETCoreSdk.BundledMSBuildInformation.props</BundledMSBuildPropsFileName>
|
<BundledMSBuildPropsFileName>Microsoft.NETCoreSdk.BundledMSBuildInformation.props</BundledMSBuildPropsFileName>
|
||||||
<MinimumMSBuildVersionFile Condition="$([System.Text.RegularExpressions.Regex]::Match(%(SDKInternalFiles.Identity),'.*minimumMSBuildVersion').Success) ">%(SDKInternalFiles.Identity)</MinimumMSBuildVersionFile>
|
|
||||||
<BundledMSBuildVersion>$(MSBuildVersion)</BundledMSBuildVersion>
|
<BundledMSBuildVersion>$(MSBuildVersion)</BundledMSBuildVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<Error Text="No MSBuild version file found under '$(RedistLayoutPath)sdk/$(Version)'" Condition="!Exists('$(MinimumMSBuildVersionFile)')" />
|
||||||
|
|
||||||
<ReadLinesFromFile File="$(MinimumMSBuildVersionFile)">
|
<ReadLinesFromFile File="$(MinimumMSBuildVersionFile)">
|
||||||
<Output TaskParameter="Lines" PropertyName="MinimumMSBuildVersion"/>
|
<Output TaskParameter="Lines" PropertyName="MinimumMSBuildVersion"/>
|
||||||
</ReadLinesFromFile>
|
</ReadLinesFromFile>
|
||||||
|
|
Loading…
Reference in a new issue