21 references to CompilerOptionParseUtilities
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (2)
556CompilerOptionParseUtilities.PrependFeatureFlagFromEnvironment(buildRequestArguments, logger.Log); 958foreach (var feature in CompilerOptionParseUtilities.ParseFeatureFromMSBuild(features))
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (19)
ManagedCompilerGlobalCacheTests.cs (19)
28CompilerOptionParseUtilities.PrependFeatureFlagFromEnvironment(arguments); 44[new KeyValuePair<string, string?>(CompilerOptionParseUtilities.CachePathEnvironmentVariable, expectedPath)], 47CompilerOptionParseUtilities.PrependFeatureFlagFromEnvironment(arguments); 65[new KeyValuePair<string, string?>(CompilerOptionParseUtilities.CachePathEnvironmentVariable, expectedPath)], 68CompilerOptionParseUtilities.PrependFeatureFlagFromEnvironment(arguments, text => message = text); 73$"Normalizing {CompilerOptionParseUtilities.CachePathEnvironmentVariable} to /features:{CompilerOptionParseUtilities.UseGlobalCacheFeatureFlag}=\"{expectedPath}\"", 89[new KeyValuePair<string, string?>(CompilerOptionParseUtilities.CachePathEnvironmentVariable, quotedPath)], 92CompilerOptionParseUtilities.PrependFeatureFlagFromEnvironment(arguments, text => message = text); 97$"Normalizing {CompilerOptionParseUtilities.CachePathEnvironmentVariable} to /features:{CompilerOptionParseUtilities.UseGlobalCacheFeatureFlag}={quotedPath}", 112Assert.Equal(expectedPath, features[CompilerOptionParseUtilities.UseGlobalCacheFeatureFlag]); 124$"/features:{CompilerOptionParseUtilities.UseGlobalCacheFeatureFlag}={explicitPath}"); 126Assert.Equal(explicitPath, features[CompilerOptionParseUtilities.UseGlobalCacheFeatureFlag]); 140Assert.Equal(expectedPath, features[CompilerOptionParseUtilities.UseGlobalCacheFeatureFlag]); 155Assert.Equal(expectedPath, features[CompilerOptionParseUtilities.UseGlobalCacheFeatureFlag]); 169Assert.DoesNotContain(CompilerOptionParseUtilities.UseGlobalCacheFeatureFlag, features.Keys); 182: [new KeyValuePair<string, string?>(CompilerOptionParseUtilities.CachePathEnvironmentVariable, environmentCachePath)], 185CompilerOptionParseUtilities.PrependFeatureFlagFromEnvironment(arguments);