public static IEnumerable <EnvironmentVariableInfo> GetEnvironmentVariables(ImageDescriptor imageDescriptor) { List <EnvironmentVariableInfo> variables = new List <EnvironmentVariableInfo>(); variables.AddRange(RuntimeOnlyImageTests.GetEnvironmentVariables(imageDescriptor)); if (imageDescriptor.Version != "3.5") { variables.Add(new EnvironmentVariableInfo("ROSLYN_COMPILER_LOCATION", "C:\\RoslynCompilers\\tools")); } return(variables); }
public void VerifyEnvironmentVariables(ImageDescriptor imageDescriptor) { List <EnvironmentVariableInfo> variables = new List <EnvironmentVariableInfo>(); variables.AddRange(RuntimeOnlyImageTests.GetEnvironmentVariables(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) { variables.Add(new EnvironmentVariableInfo("DOTNET_USE_POLLING_FILE_WATCHER", "true")); } VerifyCommonEnvironmentVariables(variables, imageDescriptor); }