71 references to Utilities
Microsoft.Build (33)
BackEnd\BuildManager\BuildParameters.cs (2)
27
using Utilities = Microsoft.Build.Internal.
Utilities
;
234
Initialize(
Utilities
.GetEnvironmentProperties(makeReadOnly: false), new ProjectRootElementCache(false), null);
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
50
Internal.
Utilities
.EnumerateProperties(evaluationFinishedEventArgs.Properties, propertiesLookup,
Construction\ProjectElementContainer.cs (1)
447
string value = Internal.
Utilities
.GetXmlNodeInnerContents(child.XmlElement);
Construction\ProjectExtensionsElement.cs (1)
114
return idElement == null ? String.Empty : Internal.
Utilities
.RemoveXmlNamespace(idElement.InnerXml);
Construction\ProjectMetadataElement.cs (2)
82
get => Link != null ? MetadataLink.Value : Internal.
Utilities
.GetXmlNodeInnerContents(XmlElement);
93
Internal.
Utilities
.SetXmlNodeInnerContents(XmlElement, value);
Construction\ProjectPropertyElement.cs (2)
68
get => Link != null ? PropertyLink.Value : Internal.
Utilities
.GetXmlNodeInnerContents(XmlElement);
82
Internal.
Utilities
.SetXmlNodeInnerContents(XmlElement, value);
Construction\ProjectUsingTaskBodyElement.cs (2)
64
get => Link != null ? UsingTaskBodyLink.TaskBody : Internal.
Utilities
.GetXmlNodeInnerContents(XmlElement);
75
Internal.
Utilities
.SetXmlNodeInnerContents(XmlElement, value);
Definition\Project.cs (3)
40
using Utilities = Microsoft.Build.Internal.
Utilities
;
4297
string toolsVersionToUse =
Utilities
.GenerateToolsVersionToUse(
4310
string toolsVersionList =
Utilities
.CreateToolsVersionListString(Project.ProjectCollection.Toolsets);
Definition\ProjectCollection.cs (5)
33
using Utilities = Microsoft.Build.Internal.
Utilities
;
528
string toolsVersionList =
Utilities
.CreateToolsVersionListString(Toolsets);
924
_environmentProperties =
Utilities
.GetEnvironmentProperties(makeReadOnly: true);
1089
return
Utilities
.GenerateToolsVersionToUse(explicitToolsVersion, toolsVersionFromProject, GetToolset, DefaultToolsVersion, out _);
1208
string effectiveToolsVersion =
Utilities
.GenerateToolsVersionToUse(toolsVersion, toolsVersionFromProject, GetToolset, DefaultToolsVersion, out _);
Instance\ProjectInstance.cs (4)
39
using Utilities = Microsoft.Build.Internal.
Utilities
;
2646
string toolsVersionToUse =
Utilities
.GenerateToolsVersionToUse(
3115
var toolsVersionToUse =
Utilities
.GenerateToolsVersionToUse(
3128
string toolsVersionList =
Utilities
.CreateToolsVersionListString(buildParameters.Toolsets);
Logging\BaseConsoleLogger.cs (2)
500
Internal.
Utilities
.EnumerateProperties(properties, list, static (list, kvp) => list.Add(new DictionaryEntry(kvp.Key, kvp.Value)));
595
Internal.
Utilities
.EnumerateItems(items, item =>
Logging\BinaryLogger\BuildEventArgsWriter.cs (2)
972
Internal.
Utilities
.EnumerateItems(items, dictionaryEntry =>
1063
Internal.
Utilities
.EnumerateProperties(properties, nameValueListBuffer, static (list, kvp) => list.Add(kvp));
Logging\BuildEventArgsExtensions.cs (3)
66
=> Internal.
Utilities
.EnumerateProperties(properties);
69
=> Internal.
Utilities
.EnumerateItems(items);
72
=> Internal.
Utilities
.EnumerateItemsOfType(items, typeName);
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
597
Internal.
Utilities
.EnumerateItems(items, item =>
LogMessagePacketBase.cs (2)
1112
Internal.
Utilities
.EnumerateProperties(properties, list, static (list, kvp) => list.Add(kvp));
1141
Internal.
Utilities
.EnumerateItems(items, dictionaryEntry =>
Microsoft.Build.Engine.UnitTests (38)
BackEnd\BuildManager_Tests.cs (1)
3545
Internal.
Utilities
.EnumerateProperties(properties, propertiesLookup,
Construction\SolutionProjectGenerator_Tests.cs (3)
19
using InternalUtilities = Microsoft.Build.Internal.
Utilities
;
621
InternalUtilities
.RefreshInternalEnvironmentValues();
666
InternalUtilities
.RefreshInternalEnvironmentValues();
Definition\Project_Internal_Tests.cs (9)
15
using InternalUtilities = Microsoft.Build.Internal.
Utilities
;
40
InternalUtilities
.RefreshInternalEnvironmentValues();
63
InternalUtilities
.RefreshInternalEnvironmentValues();
84
InternalUtilities
.RefreshInternalEnvironmentValues();
103
InternalUtilities
.RefreshInternalEnvironmentValues();
131
InternalUtilities
.RefreshInternalEnvironmentValues();
146
InternalUtilities
.RefreshInternalEnvironmentValues();
182
InternalUtilities
.RefreshInternalEnvironmentValues();
202
InternalUtilities
.RefreshInternalEnvironmentValues();
Definition\ToolsetReader_Tests.cs (1)
21
using InternalUtilities = Microsoft.Build.Internal.
Utilities
;
Definition\ToolsVersion_Tests.cs (21)
19
using InternalUtilities = Microsoft.Build.Internal.
Utilities
;
301
InternalUtilities
.RefreshInternalEnvironmentValues();
326
InternalUtilities
.RefreshInternalEnvironmentValues();
338
InternalUtilities
.RefreshInternalEnvironmentValues();
362
InternalUtilities
.RefreshInternalEnvironmentValues();
374
InternalUtilities
.RefreshInternalEnvironmentValues();
397
InternalUtilities
.RefreshInternalEnvironmentValues();
436
InternalUtilities
.RefreshInternalEnvironmentValues();
460
InternalUtilities
.RefreshInternalEnvironmentValues();
543
InternalUtilities
.RefreshInternalEnvironmentValues();
566
InternalUtilities
.RefreshInternalEnvironmentValues();
582
InternalUtilities
.RefreshInternalEnvironmentValues();
605
InternalUtilities
.RefreshInternalEnvironmentValues();
623
InternalUtilities
.RefreshInternalEnvironmentValues();
648
InternalUtilities
.RefreshInternalEnvironmentValues();
693
InternalUtilities
.RefreshInternalEnvironmentValues();
718
InternalUtilities
.RefreshInternalEnvironmentValues();
779
InternalUtilities
.RefreshInternalEnvironmentValues();
804
InternalUtilities
.RefreshInternalEnvironmentValues();
890
InternalUtilities
.RefreshInternalEnvironmentValues();
914
InternalUtilities
.RefreshInternalEnvironmentValues();
Utilities_Tests.cs (3)
10
using InternalUtilities = Microsoft.Build.Internal.
Utilities
;
320
string result =
InternalUtilities
.CreateToolsVersionListString(toolsets);
336
string xmlContents =
InternalUtilities
.GetXmlNodeInnerContents(rootElement);