public void VerifyEnvironmentVariables(ImageDescriptor imageDescriptor) { List <EnvironmentVariableInfo> variables = new List <EnvironmentVariableInfo>(); variables.AddRange(RuntimeOnlyImageTests.GetRuntimeEnvironmentVariableInfos(imageDescriptor)); variables.Add(new EnvironmentVariableInfo("ROSLYN_COMPILER_LOCATION", @"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\Roslyn")); if (imageDescriptor.OsVariant != OsVersion.WSC_LTSC2016 && imageDescriptor.OsVariant != OsVersion.WSC_LTSC2019 && imageDescriptor.OsVariant != OsVersion.WSC_1903) { variables.Add(new EnvironmentVariableInfo("DOTNET_USE_POLLING_FILE_WATCHER", "true")); } EnvironmentVariableInfo.Validate(variables, "sdk", imageDescriptor, imageTestHelper); }
public void VerifyEnvironmentVariables(ImageDescriptor imageDescriptor) { EnvironmentVariableInfo.Validate( GetRuntimeEnvironmentVariableInfos(imageDescriptor), "runtime", imageDescriptor, imageTestHelper); }