32 references to Xml
Microsoft.Build.UnitTests.Shared (28)
EngineTestEnvironment.cs (3)
94
public TransientTestProjectWithFiles CreateTestProjectWithFiles(string projectFileName, [StringSyntax(StringSyntaxAttribute.
Xml
)] string projectContents, string[] files = null, string relativePathFromRootToProject = ".")
105
public TransientTestProjectWithFiles CreateTestProjectWithFiles([StringSyntax(StringSyntaxAttribute.
Xml
)] string projectContents, string[] files = null, string relativePathFromRootToProject = ".")
121
[StringSyntax(StringSyntaxAttribute.
Xml
)] string projectContents,
ObjectModelHelpers.cs (25)
120
public static void AssertItemEvaluationFromProject([StringSyntax(StringSyntaxAttribute.
Xml
)] string projectContents, string[] inputFiles, string[] expectedInclude, Dictionary<string, string>[] expectedMetadataPerItem = null, bool normalizeSlashes = false, bool makeExpectedIncludeAbsolute = false)
137
public static void AssertItemEvaluationFromGenericItemEvaluator(Func<string, ProjectCollection, IList<ITestItem>> itemEvaluator, [StringSyntax(StringSyntaxAttribute.
Xml
)] string projectContents, string[] inputFiles, string[] expectedInclude, bool makeExpectedIncludeAbsolute = false, Dictionary<string, string>[] expectedMetadataPerItem = null, bool normalizeSlashes = false)
589
public static string CleanupFileContents([StringSyntax(StringSyntaxAttribute.
Xml
)] string projectFileContents)
604
public static string Cleanup([StringSyntax(StringSyntaxAttribute.
Xml
)] this string aString)
662
public static ProjectRootElement CreateInMemoryProjectRootElement([StringSyntax(StringSyntaxAttribute.
Xml
)] string projectContents, ProjectCollection collection = null, bool preserveFormatting = true)
718
[StringSyntax(StringSyntaxAttribute.
Xml
)] string xml,
754
[StringSyntax(StringSyntaxAttribute.
Xml
)] string projectContents,
770
[StringSyntax(StringSyntaxAttribute.
Xml
)] string projectContents,
784
public static MockLogger BuildProjectExpectFailure([StringSyntax(StringSyntaxAttribute.
Xml
)] string projectContents)
798
[StringSyntax(StringSyntaxAttribute.
Xml
)] string projectContents,
814
[StringSyntax(StringSyntaxAttribute.
Xml
)] string newExpectedProjectContents)
902
public static string CreateFileInTempProjectDirectory(string fileRelativePath, [StringSyntax(StringSyntaxAttribute.
Xml
)] string fileContents, Encoding encoding = null)
1082
public static IList<ProjectItem> GetItemsFromFragment([StringSyntax(StringSyntaxAttribute.
Xml
)] string fragment, bool allItems = false, bool ignoreCondition = false)
1098
public static IList<ProjectItem> GetItems([StringSyntax(StringSyntaxAttribute.
Xml
)] string content, bool allItems = false, bool ignoreCondition = false)
1111
public static string FormatProjectContentsWithItemGroupFragment([StringSyntax(StringSyntaxAttribute.
Xml
)] string fragment)
1354
private static void BuildProjectWithNewOM([StringSyntax(StringSyntaxAttribute.
Xml
)] string content, ref MockLogger logger, out bool result, bool allowTaskCrash, Dictionary<string, string> globalProperties = null)
1369
public static void BuildProjectWithNewOMAndBinaryLogger([StringSyntax(StringSyntaxAttribute.
Xml
)] string content, BinaryLogger binaryLogger, out bool result, out string projectDirectory)
1384
public static MockLogger BuildProjectContentUsingBuildManagerExpectResult([StringSyntax(StringSyntaxAttribute.
Xml
)] string content, BuildResultCode expectedResult)
1395
public static BuildResult BuildProjectContentUsingBuildManager([StringSyntax(StringSyntaxAttribute.
Xml
)] string content, ILogger logger, BuildParameters parameters = null)
1453
public static void CleanContentsAndBuildTargetWithDriveEnumeratingWildcard([StringSyntax(StringSyntaxAttribute.
Xml
)] string content, string failOnDriveEnumerationEnvVar, string targetName, ExpectedBuildResult expectedBuildResult, ITestOutputHelper testOutput = null)
1562
[StringSyntax(StringSyntaxAttribute.
Xml
)] string newExpectedProjectContents,
1563
[StringSyntax(StringSyntaxAttribute.
Xml
)] string newActualProjectContents)
1586
public static void VerifyAssertProjectContent([StringSyntax(StringSyntaxAttribute.
Xml
)] string expected, Project project)
1594
public static void VerifyAssertProjectContent([StringSyntax(StringSyntaxAttribute.
Xml
)] string expected, ProjectRootElement project, bool ignoreFirstLineOfActual = true)
1611
public static string CreateProjectInTempDirectoryWithFiles([StringSyntax(StringSyntaxAttribute.
Xml
)] string projectContents, string[] files, out string createdProjectFile, out string[] createdFiles, string relativePathFromRootToProject = ".")
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\CodeAnalysis\StringSyntaxAttribute.cs (1)
72
public const string Xml = nameof(
Xml
);
System.Private.Xml (3)
System\Xml\Core\XmlTextReader.cs (1)
92
public XmlTextReader([StringSyntax(StringSyntaxAttribute.
Xml
)] string xmlFragment, XmlNodeType fragType, XmlParserContext? context)
System\Xml\Core\XmlValidatingReader.cs (1)
31
public XmlValidatingReader([StringSyntax(StringSyntaxAttribute.
Xml
)] string xmlFragment, XmlNodeType fragType, XmlParserContext context)
System\Xml\Dom\XmlDocument.cs (1)
1336
public virtual void LoadXml([StringSyntax(StringSyntaxAttribute.
Xml
)] string xml)