[tests] Set MSBuildEnableWorkloadResolver=true when running the .NET tests. (#9977)

This works fine when executed from xharness, because
MSBuildEnableWorkloadResolver is set by xharness, but without this the dotnet
tests fail when executed from the IDE.
This commit is contained in:
Rolf Bjarne Kvinge 2020-10-28 08:12:19 +01:00 коммит произвёл GitHub
Родитель 7e854827d4
Коммит c72b320561
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -58,6 +58,9 @@ namespace Xamarin.Tests {
var env = new Dictionary<string, string> ();
env ["MSBuildSDKsPath"] = null;
env ["MSBUILD_EXE_PATH"] = null;
// This is a temporary variable to enable the .NET workload resolver, because it's opt-in for now.
// Ref: https://github.com/dotnet/sdk/issues/13849
env ["MSBuildEnableWorkloadResolver"] = "true";
var output = new StringBuilder ();
var rv = ExecutionHelper.Execute (Executable, args, env, output, output, workingDirectory: Path.GetDirectoryName (project), timeout: TimeSpan.FromMinutes (10));
if (assert_success && rv != 0) {