Base:
32 references to Message
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
894throw 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)
1647Assert.Contains(@"The project file could not be loaded. The 'm' start tag on line", exception.Message); 1814Assert.Contains(@"The attribute ""Foo"" in element <PropertyGroup> is unrecognized", exception.Message);
Construction\ProjectTargetElement_Tests.cs (1)
365error.Message.ShouldMatch(expectedString);
Definition\Project_Tests.cs (1)
221Console.WriteLine(ex.Message);
Definition\ProjectItem_Tests.cs (1)
3002Assert.Equal("The required attribute \"Update\" is empty or missing from the element <i>.", exception.Message);
Microsoft.Build.Engine.UnitTests (24)
BackEnd\SdkResolverLoader_Tests.cs (3)
142exception.Message.ShouldBe($"The SDK resolver type \"{nameof(MockSdkResolverThatDoesNotLoad)}\" failed to load. A8BB8B3131D3475D881ACD3AF8D75BD6"); 174exception.Message.ShouldStartWith($"The SDK resolver type \"{nameof(MockSdkResolverNoPublicConstructor)}\" failed to load."); 205exception.Message.ShouldBe($"The SDK resolver assembly \"{assemblyPath}\" could not be loaded. {expectedMessage}");
BackEnd\TaskRegistry_Tests.cs (1)
1251exception.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)
785Assert.Equal(expectedErrorMessage, ex.Message); // "Wrong error message"
Evaluation\Evaluator_Tests.cs (2)
4482Console.WriteLine("Expect exception: " + e.Message); 4541Assert.Contains("<AnInvalidTopLevelElement>", ex.Message);
Evaluation\Expander_Tests.cs (6)
1262Assert.NotEqual(-1, e.Message.IndexOf("[System.IO.Path]::Combine(null, '')", StringComparison.OrdinalIgnoreCase)); 1289Assert.NotEqual(-1, e.Message.IndexOf("System.IO.Path::Combine('a','b')", StringComparison.OrdinalIgnoreCase)); 3351Assert.Contains(expectedMessage, ex.Message); 3456Assert.StartsWith("The expression \"[MSBuild]::GetPathOfFileAbove(foo, \'\')\" cannot be evaluated.", exception.Message); 3477Assert.Contains(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidGetPathOfFileAboveParameter", fileWithPath), exception.Message); 4332Console.WriteLine(errorTests[i] + " caused '" + ex.Message + "'");
ExpressionTreeExpression_Tests.cs (1)
507output.WriteLine(expression + " caused '" + ex.Message + "'");
Graph\GraphLoadedFromSolution_tests.cs (2)
62exception.Message.ShouldContain("The project file could not be loaded."); 63exception.Message.ShouldContain("Could not find file");
Graph\ProjectGraph_Tests.cs (1)
2922exception.Message.ShouldContain($"The target \"{entryTarget}\" does not exist in the project.");
Scanner_Tests.cs (1)
62Console.WriteLine(ex.Message);