Base:
42 references to Message
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
921
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)
1644
Assert.Contains(@"The project file could not be loaded. The 'm' start tag on line", exception.
Message
);
1811
Assert.Contains(@"The attribute ""Foo"" in element <PropertyGroup> is unrecognized", exception.
Message
);
Construction\ProjectTargetElement_Tests.cs (1)
364
error.
Message
.ShouldMatch(expectedString);
Definition\Project_Tests.cs (1)
220
Console.WriteLine(ex.
Message
);
Definition\ProjectItem_Tests.cs (1)
3000
Assert.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)
141
exception.
Message
.ShouldBe($"The SDK resolver type \"{nameof(MockSdkResolverThatDoesNotLoad)}\" failed to load. A8BB8B3131D3475D881ACD3AF8D75BD6");
173
exception.
Message
.ShouldStartWith($"The SDK resolver type \"{nameof(MockSdkResolverNoPublicConstructor)}\" failed to load.");
204
exception.
Message
.ShouldBe($"The SDK resolver assembly \"{assemblyPath}\" could not be loaded. {expectedMessage}");
492
exception.
Message
.ShouldContain("could not be loaded");
BackEnd\TaskRegistry_Tests.cs (1)
1141
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)
783
Assert.Equal(expectedErrorMessage, ex.
Message
); // "Wrong error message"
Evaluation\Evaluator_Tests.cs (2)
4505
Console.WriteLine("Expect exception: " + e.
Message
);
4564
Assert.Contains("<AnInvalidTopLevelElement>", ex.
Message
);
Evaluation\Expander_Tests.cs (6)
1307
Assert.NotEqual(-1, e.
Message
.IndexOf("[System.IO.Path]::Combine(null, '')", StringComparison.OrdinalIgnoreCase));
1334
Assert.NotEqual(-1, e.
Message
.IndexOf("System.IO.Path::Combine('a','b')", StringComparison.OrdinalIgnoreCase));
3416
Assert.Contains(expectedMessage, ex.
Message
);
3521
Assert.StartsWith("The expression \"[MSBuild]::GetPathOfFileAbove(foo, \'\')\" cannot be evaluated.", exception.
Message
);
3542
Assert.Contains(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("InvalidGetPathOfFileAboveParameter", fileWithPath), exception.
Message
);
4398
Console.WriteLine(errorTests[i] + " caused '" + ex.
Message
+ "'");
ExpressionTreeExpression_Tests.cs (1)
506
output.WriteLine(expression + " caused '" + ex.
Message
+ "'");
Graph\GraphLoadedFromSolution_tests.cs (2)
60
exception.
Message
.ShouldContain("The project file could not be loaded.");
61
exception.
Message
.ShouldContain("Could not find file");
Graph\ProjectGraph_Tests.cs (10)
2922
exception.
Message
.ShouldContain($"The target \"{entryTarget}\" does not exist in the project.");
2949
innerException.
Message
.ShouldContain("missing.proj");
2950
innerException.
Message
.ShouldContain(project1.Path);
2951
innerException.
Message
.ShouldContain("could not be loaded");
2952
innerException.
Message
.ShouldContain("referenced by");
2996
innerException.
Message
.ShouldContain("missing.proj");
2997
innerException.
Message
.ShouldContain("could not be loaded");
2998
innerException.
Message
.ShouldContain("referenced by");
3001
bool mentionsProject1 = innerException.
Message
.Contains(project1.Path);
3002
bool mentionsProject2 = innerException.
Message
.Contains(project2.Path);
Scanner_Tests.cs (1)
59
Console.WriteLine(ex.
Message
);