Base:
32 references to Message
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
894
throw new InvalidProjectFileException(ipex.
Message
, ipex);
Microsoft.Build.Engine.OM.UnitTests (7)
Construction\ProjectItemElement_Tests.cs (2)
240
Assert.Contains("Items that are outside Target elements must have one of the following operations: Include, Update, or Remove.", exception.
Message
);
263
Assert.Contains("The attribute \"Exclude\" in element <i> is unrecognized.", exception.
Message
);
Construction\ProjectRootElement_Tests.cs (2)
1647
Assert.Contains(@"The project file could not be loaded. The 'm' start tag on line", exception.
Message
);
1814
Assert.Contains(@"The attribute ""Foo"" in element <PropertyGroup> is unrecognized", exception.
Message
);
Construction\ProjectTargetElement_Tests.cs (1)
365
error.
Message
.ShouldMatch(expectedString);
Definition\Project_Tests.cs (1)
221
Console.WriteLine(ex.
Message
);
Definition\ProjectItem_Tests.cs (1)
3002
Assert.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)
142
exception.
Message
.ShouldBe($"The SDK resolver type \"{nameof(MockSdkResolverThatDoesNotLoad)}\" failed to load. A8BB8B3131D3475D881ACD3AF8D75BD6");
174
exception.
Message
.ShouldStartWith($"The SDK resolver type \"{nameof(MockSdkResolverNoPublicConstructor)}\" failed to load.");
205
exception.
Message
.ShouldBe($"The SDK resolver assembly \"{assemblyPath}\" could not be loaded. {expectedMessage}");
BackEnd\TaskRegistry_Tests.cs (1)
1251
exception.
Message
.ShouldContain("The task factory must return a value for the \"TaskType\" property.");
Construction\SolutionFile_OldParser_Tests.cs (6)
1218
e.
Message
.ShouldContain("{2AE8D6C4-FB43-430C-8AEB-15E5EEDAAE4B}");
1261
e.
Message
.ShouldContain("{1484A47E-F4C5-4700-B13F-A2BDB6ADD35E}");
1262
e.
Message
.ShouldContain("ConsoleApp1");
2303
exception.
Message
.ShouldStartWith(message);
2347
exception.
Message
.ShouldStartWith(message);
2393
exception.
Message
.ShouldStartWith(message);
EscapingInProjects_Tests.cs (1)
785
Assert.Equal(expectedErrorMessage, ex.
Message
); // "Wrong error message"
Evaluation\Evaluator_Tests.cs (2)
4482
Console.WriteLine("Expect exception: " + e.
Message
);
4541
Assert.Contains("<AnInvalidTopLevelElement>", ex.
Message
);
Evaluation\Expander_Tests.cs (6)
1262
Assert.NotEqual(-1, e.
Message
.IndexOf("[System.IO.Path]::Combine(null, '')", StringComparison.OrdinalIgnoreCase));
1289
Assert.NotEqual(-1, e.
Message
.IndexOf("System.IO.Path::Combine('a','b')", StringComparison.OrdinalIgnoreCase));
3351
Assert.Contains(expectedMessage, ex.
Message
);
3456
Assert.StartsWith("The expression \"[MSBuild]::GetPathOfFileAbove(foo, \'\')\" cannot be evaluated.", exception.
Message
);
3477
Assert.Contains(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidGetPathOfFileAboveParameter", fileWithPath), exception.
Message
);
4332
Console.WriteLine(errorTests[i] + " caused '" + ex.
Message
+ "'");
ExpressionTreeExpression_Tests.cs (1)
507
output.WriteLine(expression + " caused '" + ex.
Message
+ "'");
Graph\GraphLoadedFromSolution_tests.cs (2)
62
exception.
Message
.ShouldContain("The project file could not be loaded.");
63
exception.
Message
.ShouldContain("Could not find file");
Graph\ProjectGraph_Tests.cs (1)
2922
exception.
Message
.ShouldContain($"The target \"{entryTarget}\" does not exist in the project.");
Scanner_Tests.cs (1)
62
Console.WriteLine(ex.
Message
);