Base:
42 references to Message
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
921throw new InvalidProjectFileException(ipex.Message, ipex);
Microsoft.Build.Engine.OM.UnitTests (7)
Construction\ProjectItemElement_Tests.cs (2)
240Assert.Contains("Items that are outside Target elements must have one of the following operations: Include, Update, or Remove.", exception.Message); 263Assert.Contains("The attribute \"Exclude\" in element <i> is unrecognized.", exception.Message);
Construction\ProjectRootElement_Tests.cs (2)
1644Assert.Contains(@"The project file could not be loaded. The 'm' start tag on line", exception.Message); 1811Assert.Contains(@"The attribute ""Foo"" in element <PropertyGroup> is unrecognized", exception.Message);
Construction\ProjectTargetElement_Tests.cs (1)
364error.Message.ShouldMatch(expectedString);
Definition\Project_Tests.cs (1)
220Console.WriteLine(ex.Message);
Definition\ProjectItem_Tests.cs (1)
3000Assert.Equal("The required attribute \"Update\" is empty or missing from the element <i>.", exception.Message);
Microsoft.Build.Engine.UnitTests (34)
BackEnd\SdkResolverLoader_Tests.cs (4)
141exception.Message.ShouldBe($"The SDK resolver type \"{nameof(MockSdkResolverThatDoesNotLoad)}\" failed to load. A8BB8B3131D3475D881ACD3AF8D75BD6"); 173exception.Message.ShouldStartWith($"The SDK resolver type \"{nameof(MockSdkResolverNoPublicConstructor)}\" failed to load."); 204exception.Message.ShouldBe($"The SDK resolver assembly \"{assemblyPath}\" could not be loaded. {expectedMessage}"); 492exception.Message.ShouldContain("could not be loaded");
BackEnd\TaskRegistry_Tests.cs (1)
1141exception.Message.ShouldContain("The task factory must return a value for the \"TaskType\" property.");
Construction\SolutionFile_OldParser_Tests.cs (6)
1218e.Message.ShouldContain("{2AE8D6C4-FB43-430C-8AEB-15E5EEDAAE4B}"); 1261e.Message.ShouldContain("{1484A47E-F4C5-4700-B13F-A2BDB6ADD35E}"); 1262e.Message.ShouldContain("ConsoleApp1"); 2303exception.Message.ShouldStartWith(message); 2347exception.Message.ShouldStartWith(message); 2393exception.Message.ShouldStartWith(message);
EscapingInProjects_Tests.cs (1)
783Assert.Equal(expectedErrorMessage, ex.Message); // "Wrong error message"
Evaluation\Evaluator_Tests.cs (2)
4505Console.WriteLine("Expect exception: " + e.Message); 4564Assert.Contains("<AnInvalidTopLevelElement>", ex.Message);
Evaluation\Expander_Tests.cs (6)
1307Assert.NotEqual(-1, e.Message.IndexOf("[System.IO.Path]::Combine(null, '')", StringComparison.OrdinalIgnoreCase)); 1334Assert.NotEqual(-1, e.Message.IndexOf("System.IO.Path::Combine('a','b')", StringComparison.OrdinalIgnoreCase)); 3416Assert.Contains(expectedMessage, ex.Message); 3521Assert.StartsWith("The expression \"[MSBuild]::GetPathOfFileAbove(foo, \'\')\" cannot be evaluated.", exception.Message); 3542Assert.Contains(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidGetPathOfFileAboveParameter", fileWithPath), exception.Message); 4398Console.WriteLine(errorTests[i] + " caused '" + ex.Message + "'");
ExpressionTreeExpression_Tests.cs (1)
506output.WriteLine(expression + " caused '" + ex.Message + "'");
Graph\GraphLoadedFromSolution_tests.cs (2)
60exception.Message.ShouldContain("The project file could not be loaded."); 61exception.Message.ShouldContain("Could not find file");
Graph\ProjectGraph_Tests.cs (10)
2922exception.Message.ShouldContain($"The target \"{entryTarget}\" does not exist in the project."); 2949innerException.Message.ShouldContain("missing.proj"); 2950innerException.Message.ShouldContain(project1.Path); 2951innerException.Message.ShouldContain("could not be loaded"); 2952innerException.Message.ShouldContain("referenced by"); 2996innerException.Message.ShouldContain("missing.proj"); 2997innerException.Message.ShouldContain("could not be loaded"); 2998innerException.Message.ShouldContain("referenced by"); 3001bool mentionsProject1 = innerException.Message.Contains(project1.Path); 3002bool mentionsProject2 = innerException.Message.Contains(project2.Path);
Scanner_Tests.cs (1)
59Console.WriteLine(ex.Message);