199 references to MSBuildConstants
Microsoft.Build (67)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
543MSBuildEventSource.Log.ProjectCacheGetCacheResultStart(plugin.Name, buildRequest.ProjectFullPath, targetNames ?? MSBuildConstants.DefaultTargetsMarker);
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (4)
259undefinePropertiesArray = RemoveProperties.Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries); 566projects[i].GetMetadata(ItemMetadataNames.PropertiesMetadataName).Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries), 585string[] propertiesToUndefine = projectUndefineProperties.Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries); 610projects[i].GetMetadata(ItemMetadataNames.AdditionalPropertiesMetadataName).Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries),
BackEnd\Components\RequestBuilder\RequestBuilder.cs (5)
1109bool isRestoring = _requestEntry.RequestConfiguration.GlobalProperties[MSBuildConstants.MSBuildIsRestoring] is not null; 1393if (String.Equals(project.GetEngineRequiredPropertyValue(MSBuildConstants.TreatWarningsAsErrors)?.Trim(), "true", StringComparison.OrdinalIgnoreCase)) 1400ISet<string> warningsAsErrors = ParseWarningCodes(project.GetEngineRequiredPropertyValue(MSBuildConstants.WarningsAsErrors)); 1408ISet<string> warningsNotAsErrors = ParseWarningCodes(project.GetEngineRequiredPropertyValue(MSBuildConstants.WarningsNotAsErrors)); 1415ISet<string> warningsAsMessages = ParseWarningCodes(project.GetEngineRequiredPropertyValue(MSBuildConstants.WarningsAsMessages));
BackEnd\Components\Scheduler\SchedulingPlan.cs (2)
374string[] values = line.Split(MSBuildConstants.SpaceChar); 405string[] values = line.Split(MSBuildConstants.SemicolonChar);
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
339throw new SdkResolverException("CouldNotRunNuGetSdkResolver", sdkResolver, sdk, e, MSBuildConstants.NuGetAssemblyPathEnvironmentVariableName, e.ToString());
BackEnd\Node\OutOfProcNode.cs (1)
811propertyListToSerialize = forwardPropertiesFromChild.Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
521var key = $"{MSBuildConstants.MSBuildDummyGlobalPropertyHeader}{Guid.NewGuid():N}";
BackEnd\Shared\ConfigurationMetadata.cs (1)
58_toolsVersion = MSBuildConstants.CurrentToolsVersion;
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (1)
65eventArgs.GlobalProperties.TryGetValue(MSBuildConstants.MSBuildIsRestoring, out string? restoreProperty);
CanonicalError.cs (1)
320string[] explodedText = parsedMessage.text.Split(MSBuildConstants.SingleQuoteChar, StringSplitOptions.RemoveEmptyEntries);
Construction\ProjectRootElement.cs (2)
51private const string EmptyProjectFileToolsVersion = " ToolsVersion=\"" + MSBuildConstants.CurrentToolsVersion + "\""; 1909foreach (string sdk in sdks.Split(MSBuildConstants.SemicolonChar).Select(i => i.Trim()))
CoreCLRAssemblyLoader.cs (1)
29private static readonly Version _currentAssemblyVersion = new Version(Microsoft.Build.Shared.MSBuildConstants.CurrentAssemblyVersion);
Definition\Project.cs (1)
3451string[] existingIncludePieces = evaluatedExistingInclude.Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries);
Definition\ToolsetConfigurationReader.cs (1)
44private static readonly char[] s_separatorForExtensionsPathSearchPaths = MSBuildConstants.SemicolonChar;
Definition\ToolsetLocalReader.cs (5)
24protected override string DefaultOverrideToolsVersion => MSBuildConstants.CurrentToolsVersion; 26protected override string DefaultToolsVersion => MSBuildConstants.CurrentToolsVersion; 34yield return new ToolsetPropertyDefinition(MSBuildConstants.CurrentToolsVersion, string.Empty, _sourceLocation); 40yield return new ToolsetPropertyDefinition(MSBuildConstants.ToolsPath, BuildEnvironmentHelper.Instance.CurrentMSBuildToolsDirectory, _sourceLocation); 41yield return new ToolsetPropertyDefinition(MSBuildConstants.SdksPath, BuildEnvironmentHelper.Instance.MSBuildSDKsPath, _sourceLocation);
Definition\ToolsetReader.cs (3)
223if (!toolsets.ContainsKey(MSBuildConstants.CurrentToolsVersion)) 226MSBuildConstants.CurrentToolsVersion, 228MSBuildConstants.CurrentToolsVersion,
Evaluation\Conditionals\StringExpressionNode.cs (3)
43result = ConversionUtilities.ConvertDecimalOrHexToDouble(MSBuildConstants.CurrentVisualStudioVersion); 56result = Version.Parse(MSBuildConstants.CurrentVisualStudioVersion); 184if (string.Equals(GetExpandedValue(state), MSBuildConstants.CurrentToolsVersion, StringComparison.Ordinal))
Evaluation\Evaluator.cs (2)
65private static readonly char[] s_splitter = MSBuildConstants.SemicolonChar; 1219_data.SetProperty(Constants.VisualStudioVersionPropertyName, MSBuildConstants.CurrentVisualStudioVersion, false /* NOT global property */, false /* may NOT be a reserved name */, loggingContext: _evaluationLoggingContext);
Evaluation\LazyItemEvaluator.cs (1)
380if (MSBuildConstants.CharactersForExpansion.Any(frag.TextFragment.Contains))
FileUtilities.cs (2)
1141string[] splitBase = fullBase.Split(MSBuildConstants.DirectorySeparatorChar, StringSplitOptions.RemoveEmptyEntries); 1142string[] splitPath = fullPath.Split(MSBuildConstants.DirectorySeparatorChar, StringSplitOptions.RemoveEmptyEntries);
FrameworkLocationHelper.cs (1)
944if (string.Equals(toolsVersion, MSBuildConstants.CurrentToolsVersion, StringComparison.Ordinal))
Graph\ProjectGraph.cs (3)
805if (targets[i].Equals(MSBuildConstants.DefaultTargetsMarker, StringComparison.OrdinalIgnoreCase)) 812else if (targets[i].Equals(MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker, StringComparison.OrdinalIgnoreCase)) 858MSBuildConstants.CurrentToolsVersion,
Graph\ProjectInterpretation.cs (3)
43private static readonly char[] PropertySeparator = MSBuildConstants.SemicolonChar; 65!skipIfNonexistent || (!target.Equals(MSBuildConstants.DefaultTargetsMarker) 66&& !target.Equals(MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker)),
Logging\BinaryLogger\BinaryLogger.cs (1)
424var parameters = Parameters.Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries);
Logging\DistributedLoggers\ConfigurableForwardingLogger.cs (1)
400private static readonly char[] s_parameterDelimiters = MSBuildConstants.SemicolonChar;
Logging\FileLogger.cs (2)
275private static readonly char[] s_fileLoggerParameterDelimiters = MSBuildConstants.SemicolonChar; 280private static readonly char[] s_fileLoggerParameterValueSplitCharacter = MSBuildConstants.EqualsChar;
Logging\ParallelLogger\ConsoleOutputAligner.cs (2)
54int j = message.IndexOfAny(MSBuildConstants.CrLf); 67j = message.IndexOfAny(MSBuildConstants.CrLf, i);
PlatformNegotiation.cs (3)
37foreach (string s in projectReferencePlatformsMetadata.Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries)) 108foreach (string s in stringTable.Trim().Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries)) 110string[] keyVal = s.Trim().Split(MSBuildConstants.EqualsChar);
Resources\Constants.cs (5)
43internal const string toolsPath = MSBuildConstants.ToolsPath; 122internal static string defaultFallbackToolsVersion = MSBuildConstants.CurrentToolsVersion; 127internal static string defaultSolutionWrapperProjectToolsVersion = MSBuildConstants.CurrentToolsVersion; 152return MSBuildConstants.CurrentProductVersion; 365availableStaticMethods.TryAdd("Microsoft.Build.Utilities.ToolLocationHelper", new Tuple<string, Type>("Microsoft.Build.Utilities.ToolLocationHelper, Microsoft.Build.Utilities.Core, Version=" + MSBuildConstants.CurrentAssemblyVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", null));
Utilities\EngineFileUtilities.cs (1)
547foreach (string regex in wildCards.Split(MSBuildConstants.SemicolonChar))
Utilities\Utilities.cs (6)
349toolsVersionToUse = MSBuildConstants.CurrentToolsVersion; 362toolsVersionToUse = MSBuildConstants.CurrentToolsVersion; 380currentToolset = getToolset(MSBuildConstants.CurrentToolsVersion); 399toolsVersionToUse = MSBuildConstants.CurrentToolsVersion; 437toolsVersionToUse = MSBuildConstants.CurrentToolsVersion; 442toolsVersionToUse = MSBuildConstants.CurrentToolsVersion;
Microsoft.Build.BuildCheck.UnitTests (1)
TaskInvocationAnalysisDataTests.cs (1)
89var request = new BuildRequestData(testProject.ProjectFile, new Dictionary<string, string?>(), MSBuildConstants.CurrentToolsVersion, [], null, BuildRequestDataFlags.None);
Microsoft.Build.Engine.OM.UnitTests (15)
Construction\ConstructionEditing_Tests.cs (1)
3253var splits = expectedItem.Split(MSBuildConstants.NewlineChar);
Definition\Project_Tests.cs (7)
1241p.GetPropertyValue("VisualStudioVersion").ShouldBe(t.DefaultSubToolsetVersion ?? MSBuildConstants.CurrentVisualStudioVersion); 1609var project = new Project(projectRootElement, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3254var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3284var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3575var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3770var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3845var globResult = new Project(testFiles.ProjectFile, null, MSBuildConstants.CurrentToolsVersion, projectCollection).GetAllGlobs();
Definition\ProjectItem_Tests.cs (5)
1155ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList()); 1175ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList()); 2216var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().Collection); 2276var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().Collection); 3660return new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c)
FileUtilities.cs (2)
1141string[] splitBase = fullBase.Split(MSBuildConstants.DirectorySeparatorChar, StringSplitOptions.RemoveEmptyEntries); 1142string[] splitPath = fullPath.Split(MSBuildConstants.DirectorySeparatorChar, StringSplitOptions.RemoveEmptyEntries);
Microsoft.Build.Engine.UnitTests (34)
BackEnd\BuildManager_Logging_Tests.cs (1)
120MSBuildConstants.CurrentToolsVersion,
BackEnd\BuildManager_Tests.cs (8)
203MSBuildConstants.CurrentToolsVersion, 3706var mainProject = new Project(mainRootElement, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, collection); 3730var p2pProject = new Project(p2pProjectPath, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, collection); 3801MSBuildConstants.CurrentToolsVersion, 3857var project = new Project(root, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, 3958MSBuildConstants.CurrentToolsVersion, 4102var request1 = new BuildRequestData(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, new[] { "Build" }, null); 4103var request2 = new BuildRequestData(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, new[] { "Build" }, null);
BackEnd\BuildRequestConfiguration_Tests.cs (1)
570var configuration = new BuildRequestConfiguration(new BuildRequestData(projectInstance, Array.Empty<string>()), MSBuildConstants.CurrentToolsVersion);
BackEnd\IntrinsicTask_Tests.cs (1)
3988var project = new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c);
BackEnd\MockTaskBuilder.cs (1)
112targetBuilderCallback.LegacyCallTarget(taskInstance.GetParameter("Targets").Split(MSBuildConstants.SemicolonChar), false, taskInstance.Location);
BackEnd\TaskBuilder_Tests.cs (1)
168using ProjectFromString projectFromString = new(contents, null, MSBuildConstants.CurrentToolsVersion, collection);
BackEnd\TaskRegistry_Tests.cs (2)
672MSBuildConstants.CurrentToolsVersion, 1889MSBuildConstants.CurrentToolsVersion,
BuildEnvironmentHelper_Tests.cs (2)
212[InlineData(MSBuildConstants.CurrentVisualStudioVersion, true)] 465public EmptyVSEnviroment(string toolsVersion = MSBuildConstants.CurrentToolsVersion) : base("MSBuild.exe", false)
Definition\Project_Internal_Tests.cs (1)
238using ProjectFromString projectFromString = new(projectContents, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection, ProjectLoadSettings.DoNotEvaluateElementsWithFalseCondition);
Evaluation\Evaluator_Tests.cs (1)
4338Assert.Equal(MSBuildConstants.CurrentVisualStudioVersion, actual);
Evaluation\Expander_Tests.cs (1)
1962<TargetFrameworkVersion>{MSBuildConstants.StandardTestTargetFrameworkVersion}</TargetFrameworkVersion>
FileLogger_Tests.cs (2)
470string[] actualLines = actualContent.Split(MSBuildConstants.NewlineChar, StringSplitOptions.RemoveEmptyEntries); 471string[] expectedLines = expectedContent.Split(MSBuildConstants.NewlineChar, StringSplitOptions.RemoveEmptyEntries);
FileUtilitiesRegex_Tests.cs (2)
16private string _directoryStart = new string(MSBuildConstants.BackslashChar[0], 2); 17private string _altDirectoryStart = new string(MSBuildConstants.ForwardSlash[0], 2);
Graph\ProjectGraph_Tests.cs (8)
1213<ProjectReferenceTargets Include='A' Targets='{MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker};A;AInner' /> 1214<ProjectReferenceTargets Include='A' Targets='{MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker};A;AOuter' OuterBuild='true' /> 1483new Dictionary<string, string[]> { { "Build", new[] { MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker, "T2" } } }, 1491new Dictionary<string, string[]> { { "Build", new[] { MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker, "T3" } } }, 1499new Dictionary<string, string[]> { { "Build", new[] { MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker, "T4" } } }, 2613<ProjectReferenceTargets Include='Build' Targets='Build;{MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker}' /> 2684<ProjectReferenceTargets Include='SomeDefaultTarget1' Targets='{MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker}' /> 2726<ProjectReferenceTargets Include='SomeDefaultTarget1' Targets='{MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker}' />
Instance\ProjectInstance_Internal_Tests.cs (2)
330p.GetPropertyValue("VisualStudioVersion").ShouldBe(MSBuildConstants.CurrentVisualStudioVersion); 688projectContents = string.Format(projectContents, MSBuildConstants.CurrentToolsVersion);
Microsoft.Build.Framework (4)
Logging\LoggerParametersHelper.cs (2)
17public static readonly char[] s_parameterDelimiters = MSBuildConstants.SemicolonChar; 20public static readonly char[] s_parameterValueSplitCharacter = MSBuildConstants.EqualsChar;
NativeMethods.cs (1)
1411string[] statFields = line.Substring(line.LastIndexOf(')')).Split(MSBuildConstants.SpaceChar, 4);
Sdk\SdkReference.cs (1)
87var parts = sdk.Split(MSBuildConstants.ForwardSlash).Select(i => i.Trim()).ToArray();
Microsoft.Build.Tasks.Core (28)
AssemblyDependency\AssemblyFoldersExResolver.cs (1)
150foreach (string c in value.Split(MSBuildConstants.ColonChar))
AssemblyDependency\AssemblyInformation.cs (1)
94string[] nameParts = args.Name.Split(MSBuildConstants.CommaChar);
AssemblyDependency\GenerateBindingRedirects.cs (1)
256var oldVersionRange = oldVersionAttribute.Value.Split(MSBuildConstants.HyphenChar);
AssemblyFoldersEx.cs (1)
277string[] platforms = platformValue.Split(MSBuildConstants.SemicolonChar);
AssignProjectConfiguration.cs (2)
392string[] mappings = mappingList.Split(MSBuildConstants.SemicolonChar); 396string[] platforms = mapping.Split(MSBuildConstants.EqualsChar);
CanonicalError.cs (1)
320string[] explodedText = parsedMessage.text.Split(MSBuildConstants.SingleQuoteChar, StringSplitOptions.RemoveEmptyEntries);
CreateManifestResourceName.cs (2)
344string[] subNames = name.Split(MSBuildConstants.DotChar); 374string[] subNames = name.Split(MSBuildConstants.ForwardSlashBackslash);
FileUtilities.cs (2)
1141string[] splitBase = fullBase.Split(MSBuildConstants.DirectorySeparatorChar, StringSplitOptions.RemoveEmptyEntries); 1142string[] splitPath = fullPath.Split(MSBuildConstants.DirectorySeparatorChar, StringSplitOptions.RemoveEmptyEntries);
ManifestUtil\PathUtil.cs (1)
36return path.Split(MSBuildConstants.DirectorySeparatorChar);
MSBuild.cs (4)
224undefinePropertiesArray = RemoveProperties.Split(MSBuildConstants.SemicolonChar); 519log, ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("General.OverridingProperties", projectNames[i]), "Properties", projects[i].GetMetadata("Properties").Split(MSBuildConstants.SemicolonChar), 537string[] propertiesToUndefine = projectUndefineProperties.Split(MSBuildConstants.SemicolonChar); 559log, ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("General.AdditionalProperties", projectNames[i]), "AdditionalProperties", projects[i].GetMetadata("AdditionalProperties").Split(MSBuildConstants.SemicolonChar),
PlatformNegotiation.cs (3)
37foreach (string s in projectReferencePlatformsMetadata.Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries)) 108foreach (string s in stringTable.Trim().Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries)) 110string[] keyVal = s.Trim().Split(MSBuildConstants.EqualsChar);
ResolveNativeReference.cs (1)
326string[] verMajorAndMinor = typelib.Version.Split(MSBuildConstants.DotChar);
ResolveSDKReference.cs (3)
62private static readonly char[] s_appxSplitChar = MSBuildConstants.HyphenChar; 549return dependsOnSDK.Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries).Select(x => x.Trim()).Where(y => y.Length > 0).ToList<string>(); 661private static readonly char[] s_supportedArchitecturesSplitChars = MSBuildConstants.SemicolonChar;
system.design\stronglytypedresourcebuilder.cs (1)
305var versionArg = new CodeAttributeArgument(new CodePrimitiveExpression(MSBuildConstants.CurrentAssemblyVersion));
Telemetry.cs (2)
38foreach (string pair in EventData.Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries)) 40var item = pair.Split(MSBuildConstants.EqualsChar, 2, StringSplitOptions.RemoveEmptyEntries);
XamlTaskFactory\RelationsParser.cs (1)
402importTasks = attribute.InnerText.Split(MSBuildConstants.SemicolonChar);
XslTransformation.cs (1)
480string[] pair = dll.Split(MSBuildConstants.SemicolonChar);
Microsoft.Build.Tasks.UnitTests (11)
MSBuild_Tests.cs (1)
407<TargetFrameworkVersion>{MSBuildConstants.StandardTestTargetFrameworkVersion}</TargetFrameworkVersion>
ProjectExtensionsImportTestBase.cs (4)
80<{MSBuildConstants.MSBuildIsRestoring}>true</{MSBuildConstants.MSBuildIsRestoring}> 106<{MSBuildConstants.MSBuildIsRestoring}>true</{MSBuildConstants.MSBuildIsRestoring}>
RegressionTests.cs (1)
64<TargetFrameworkVersion>{MSBuildConstants.StandardTestTargetFrameworkVersion}</TargetFrameworkVersion>
ResourceHandling\GenerateResource_Tests.cs (2)
3088<TargetFrameworkVersion>{MSBuildConstants.StandardTestTargetFrameworkVersion}</TargetFrameworkVersion> 3263<TargetFrameworkVersion>{MSBuildConstants.StandardTestTargetFrameworkVersion}</TargetFrameworkVersion>
RoslynCodeTaskFactory_Tests.cs (1)
95<TargetFrameworkVersion>{MSBuildConstants.StandardTestTargetFrameworkVersion}</TargetFrameworkVersion>
ToolTaskExtension_Tests.cs (1)
114string[] actual = t.GetResponseFileCommands().Split(MSBuildConstants.EnvironmentNewLine, StringSplitOptions.None);
WriteCodeFragment_Tests.cs (1)
1179actualContent.Split(MSBuildConstants.CrLf)
Microsoft.Build.UnitTests.Shared (10)
ObjectModelHelpers.cs (10)
45private static string s_msbuildDefaultToolsVersion = MSBuildConstants.CurrentToolsVersion; 46private static string s_msbuildAssemblyVersion = MSBuildConstants.CurrentAssemblyVersion; 47private static string s_currentVisualStudioVersion = MSBuildConstants.CurrentVisualStudioVersion; 126return new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c) 513string[] expectedItemsStringSplit = expectedItemsString.Split(MSBuildConstants.CrLf, StringSplitOptions.RemoveEmptyEntries); 536string[] itemMetadataPieces = itemMetadataString.Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries); 1430MSBuildConstants.CurrentToolsVersion, 1731foreach (var defaultTarget in (defaultTargets ?? string.Empty).Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries)) 1838var splits = path.Split(MSBuildConstants.ForwardSlashBackslash); 2111MSBuildConstants.CurrentToolsVersion,
Microsoft.Build.Utilities.Core (14)
AssemblyFoldersEx.cs (1)
277string[] platforms = platformValue.Split(MSBuildConstants.SemicolonChar);
CanonicalError.cs (1)
320string[] explodedText = parsedMessage.text.Split(MSBuildConstants.SingleQuoteChar, StringSplitOptions.RemoveEmptyEntries);
ExtensionSDK.cs (2)
153string[] properties = moniker.Split(MSBuildConstants.CommaChar); 157string[] words = property.Split(MSBuildConstants.EqualsChar);
FileUtilities.cs (2)
1141string[] splitBase = fullBase.Split(MSBuildConstants.DirectorySeparatorChar, StringSplitOptions.RemoveEmptyEntries); 1142string[] splitPath = fullPath.Split(MSBuildConstants.DirectorySeparatorChar, StringSplitOptions.RemoveEmptyEntries);
FrameworkLocationHelper.cs (1)
944if (string.Equals(toolsVersion, MSBuildConstants.CurrentToolsVersion, StringComparison.Ordinal))
ToolLocationHelper.cs (5)
274private static readonly char[] _separatorForFallbackSearchPaths = MSBuildConstants.SemicolonChar; 286private static readonly char[] s_diskRootSplitChars = MSBuildConstants.SemicolonChar; 298public static string CurrentToolsVersion => MSBuildConstants.CurrentToolsVersion; 1485var roots = possibleRoots.Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries); 1486var files = relativeFilePaths.Split(MSBuildConstants.SemicolonChar, StringSplitOptions.RemoveEmptyEntries);
ToolTask.cs (2)
1318.Split(MSBuildConstants.PathSeparatorChar)? 1689private static readonly char[] s_equalsSplitter = MSBuildConstants.EqualsChar;
Microsoft.Build.Utilities.UnitTests (1)
CommandLineBuilder_Tests.cs (1)
451string[] actual = c.ToString().Split(MSBuildConstants.EnvironmentNewLine, StringSplitOptions.None);
MSBuild (14)
CoreCLRAssemblyLoader.cs (1)
29private static readonly Version _currentAssemblyVersion = new Version(Microsoft.Build.Shared.MSBuildConstants.CurrentAssemblyVersion);
FileUtilities.cs (2)
1141string[] splitBase = fullBase.Split(MSBuildConstants.DirectorySeparatorChar, StringSplitOptions.RemoveEmptyEntries); 1142string[] splitPath = fullPath.Split(MSBuildConstants.DirectorySeparatorChar, StringSplitOptions.RemoveEmptyEntries);
XMake.cs (11)
1561bool restoreOnly = targets.Length == 1 && string.Equals(targets[0], MSBuildConstants.RestoreTargetName, StringComparison.OrdinalIgnoreCase); 1846restoreGlobalProperties[MSBuildConstants.MSBuildRestoreSessionId] = Guid.NewGuid().ToString("D"); 1849restoreGlobalProperties[MSBuildConstants.MSBuildIsRestoring] = bool.TrueString; 1868targetsToBuild: [MSBuildConstants.RestoreTargetName], 2869foreach (string parameter in s.Split(MSBuildConstants.SemicolonChar)) 2876string[] parameterAndValue = parameter.Split(MSBuildConstants.EqualsChar); 3726private static readonly char[] s_propertyValueSeparator = MSBuildConstants.EqualsChar; 3731private static readonly char[] s_wildcards = MSBuildConstants.WildcardChars; 3867parametersToAggregate[i] = parametersToAggregate[i].Trim(MSBuildConstants.SemicolonChar); 4142string[] nameValues = parameters.Split(MSBuildConstants.SemicolonChar); 4172string[] nameValuePair = parameter.Split(MSBuildConstants.EqualsChar);