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