Base:
34 references to Message
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
896throw new InvalidProjectFileException(ipex.Message, ipex);
Microsoft.Build.Engine.OM.UnitTests (9)
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)
1632Assert.Contains(@"The project file could not be loaded. The 'm' start tag on line", exception.Message); 1798Assert.Contains(@"The attribute ""Foo"" in element <PropertyGroup> is unrecognized", exception.Message);
Construction\ProjectTargetElement_Tests.cs (2)
373error.Message.ShouldMatch(expectedString); 377error.Message.ShouldNotMatch(expectedString);
Construction\SolutionFile_Tests.cs (1)
549Assert.Contains("{2AE8D6C4-FB43-430C-8AEB-15E5EEDAAE4B}", e.Message);
Definition\Project_Tests.cs (1)
218Console.WriteLine(ex.Message);
Definition\ProjectItem_Tests.cs (1)
2996Assert.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)
1250exception.Message.ShouldContain("The task factory must return a value for the \"TaskType\" property.");
Construction\SolutionFile_Tests.cs (6)
1144e.Message.ShouldContain("{2AE8D6C4-FB43-430C-8AEB-15E5EEDAAE4B}"); 1187e.Message.ShouldContain("{1484A47E-F4C5-4700-B13F-A2BDB6ADD35E}"); 1188e.Message.ShouldContain("ConsoleApp1"); 2229exception.Message.ShouldStartWith(message); 2273exception.Message.ShouldStartWith(message); 2319exception.Message.ShouldStartWith(message);
EscapingInProjects_Tests.cs (1)
784Assert.Equal(expectedErrorMessage, ex.Message); // "Wrong error message"
Evaluation\Evaluator_Tests.cs (2)
4395Console.WriteLine("Expect exception: " + e.Message); 4455Assert.Contains("<AnInvalidTopLevelElement>", ex.Message);
Evaluation\Expander_Tests.cs (6)
1256Assert.NotEqual(-1, e.Message.IndexOf("[System.IO.Path]::Combine(null, '')", StringComparison.OrdinalIgnoreCase)); 1283Assert.NotEqual(-1, e.Message.IndexOf("System.IO.Path::Combine('a','b')", StringComparison.OrdinalIgnoreCase)); 3298Assert.Contains(expectedMessage, ex.Message); 3403Assert.StartsWith("The expression \"[MSBuild]::GetPathOfFileAbove(foo, \'\')\" cannot be evaluated.", exception.Message); 3424Assert.Contains(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidGetPathOfFileAboveParameter", fileWithPath), exception.Message); 4276Console.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. Could not find file"); 668exception.Message.ShouldContain("but a project with this GUID was not found in the .SLN 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);