[release/7.0.1xx-xcode14.2] Imports the .user.env file if exists and the build is from VS (#17467)

This will allow the latest runtime identifier values to be evaluated in time during the MSBuild property evaluation phase.

Related and dependent of this PR: https://github.com/xamarin/XamarinVS/pull/13606


Backport of #17466

Co-authored-by: Mauro Agnoletti <maagno@microsoft.com>
This commit is contained in:
VS MobileTools Engineering Service 2 2023-02-08 03:37:09 -05:00 коммит произвёл GitHub
Родитель d06856ad79
Коммит c18ed0c38b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -8,6 +8,9 @@
<Import Project="Xamarin.Shared.Sdk.TargetFrameworkInference.props" /> <Import Project="Xamarin.Shared.Sdk.TargetFrameworkInference.props" />
<!-- Imports the .user.env file if exists and the build is from VS -->
<Import Project="$(MSBuildProjectFullPath).user.env" Condition="Exists('$(MSBuildProjectFullPath).user.env') And '$(BuildingInsideVisualStudio)' == 'true'" />
<PropertyGroup> <PropertyGroup>
<!-- Set to true when using the Microsoft.<platform>.Sdk NuGet. This is used by pre-existing/shared targets to tweak behavior depending on build system --> <!-- Set to true when using the Microsoft.<platform>.Sdk NuGet. This is used by pre-existing/shared targets to tweak behavior depending on build system -->
<UsingAppleNETSdk>true</UsingAppleNETSdk> <UsingAppleNETSdk>true</UsingAppleNETSdk>