[msbuild] Avoids running GetMinimumOSVersion if no Mac is connected

`GetMinimumOSVersion` should not be run if there's no Mac available because it depends on `_DetectSdkLocations` to calculate the value of `_SdkVersion`, and this will only happen if there's a Mac connected. This change fixes offline builds (plain IL builds) and Hot Restart builds on Windows.
This commit is contained in:
emaf 2020-07-21 11:15:40 -03:00 коммит произвёл Emanuel Fernandez Dell'Oca
Родитель 914cdaa26a
Коммит 72b8de060b
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -204,6 +204,7 @@ Copyright (C) 2018 Microsoft. All rights reserved.
<Target Name="_GetMinimumOSVersion" DependsOnTargets="_DetectAppManifest;_DetectSdkLocations;_ComputeTargetFrameworkMoniker">
<GetMinimumOSVersion
Condition="'$(IsMacEnabled)' == 'true'"
SessionId="$(BuildSessionId)"
AppManifest="$(_AppManifest)"
SdkVersion="$(_SdkVersion)"