10 instantiations of InvalidProjectFileException
Microsoft.Build (10)
BackEnd\BuildManager\BuildManager.cs (1)
2053
LogInvalidProjectFileError(new
InvalidProjectFileException
(ex.Message, ex));
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
553
throw new
InvalidProjectFileException
(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("NETHostVersion_Failed", sdkVersion, MinimumSdkVersion));
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
31
new(typeof(InvalidProjectFileException), (msg, inner) => new
InvalidProjectFileException
(msg, inner)),
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
802
taskException = new
InvalidProjectFileException
(
929
throw new
InvalidProjectFileException
(ipex.Message, ipex);
Graph\GraphBuilder.cs (2)
290
throw new
InvalidProjectFileException
(
566
throw new
InvalidProjectFileException
(
Graph\ProjectInterpretation.cs (1)
477
throw new
InvalidProjectFileException
(
src\msbuild\src\Shared\ProjectErrorUtilities.cs (1)
268
throw new
InvalidProjectFileException
(elementLocation.File, elementLocation.Line, elementLocation.Column, 0 /* Unknown end line */, 0 /* Unknown end column */, message, errorSubCategory, errorCode, helpKeyword);
src\msbuild\src\Shared\ProjectFileErrorUtilities.cs (1)
153
throw new
InvalidProjectFileException
(projectFile.File, projectFile.Line, projectFile.Column, projectFile.EndLine, projectFile.EndColumn, message, errorSubCategory, errorCode, helpKeyword, innerException);
72 references to InvalidProjectFileException
dotnet (7)
CommandFactory\CommandResolution\ProjectFactory.cs (1)
58
catch (
InvalidProjectFileException
ex)
Commands\Run\RunCommand.cs (2)
224
catch (
InvalidProjectFileException
e)
593
catch (
InvalidProjectFileException
e)
Commands\Run\RunCommandSelector.cs (1)
209
catch (
InvalidProjectFileException
)
Commands\Solution\Add\SolutionAddCommand.cs (1)
173
catch (
InvalidProjectFileException
ex)
MsbuildProject.cs (2)
217
catch (
InvalidProjectFileException
e)
292
catch (
InvalidProjectFileException
)
dotnet-aot (2)
src\sdk\src\Cli\dotnet\MsbuildProject.cs (2)
217
catch (
InvalidProjectFileException
e)
292
catch (
InvalidProjectFileException
)
Microsoft.Build (57)
BackEnd\BuildManager\BuildManager.cs (6)
2038
if (innerException is
InvalidProjectFileException
innerProjectException)
2046
if (ex is
InvalidProjectFileException
projectException)
2083
void LogInvalidProjectFileError(
InvalidProjectFileException
projectException)
2193
if (ex is
InvalidProjectFileException
projectException)
2211
if (ex is not
InvalidProjectFileException
)
2699
catch (
InvalidProjectFileException
e)
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
31
new(typeof(
InvalidProjectFileException
), (msg, inner) => new InvalidProjectFileException(msg, inner)),
BackEnd\Components\Logging\ILoggingService.cs (2)
12
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
437
void LogInvalidProjectFileError(BuildEventContext buildEventContext,
InvalidProjectFileException
invalidProjectFileException);
BackEnd\Components\Logging\LoggingContext.cs (1)
230
internal void LogInvalidProjectFileError(
InvalidProjectFileException
invalidProjectFileException)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (2)
15
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
155
public void LogInvalidProjectFileError(BuildEventContext buildEventContext,
InvalidProjectFileException
invalidProjectFileException)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
796
catch (
InvalidProjectFileException
ex)
BackEnd\Components\RequestBuilder\TargetEntry.cs (2)
19
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
566
catch (
InvalidProjectFileException
e)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (5)
422
catch (
InvalidProjectFileException
e)
492
catch (
InvalidProjectFileException
e)
914
else if (type == typeof(
InvalidProjectFileException
))
918
InvalidProjectFileException
ipex = (
InvalidProjectFileException
)taskException;
Construction\ProjectRootElement.cs (3)
24
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
1678
/// If the new state has invalid XML or MSBuild syntax, then this method throws an <see cref="
InvalidProjectFileException
"/>.
2061
catch (
InvalidProjectFileException
)
Definition\Project.cs (5)
32
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
387
/// <exception cref="
InvalidProjectFileException
">If the evaluation fails.</exception>
1952
catch (
InvalidProjectFileException
ex)
1995
catch (
InvalidProjectFileException
ex)
3740
catch (
InvalidProjectFileException
ex)
Definition\ProjectCollection.cs (3)
27
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
417
catch (
InvalidProjectFileException
ex2)
1315
catch (
InvalidProjectFileException
ex)
Definition\ToolsetReader.cs (2)
16
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
590
catch (
InvalidProjectFileException
ex)
Errors\InvalidProjectFileException.cs (1)
73
internal InvalidProjectFileException(string message,
InvalidProjectFileException
innerException)
Evaluation\Evaluator.cs (2)
32
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
2302
catch (
InvalidProjectFileException
ex)
Graph\GraphBuilder.cs (1)
548
catch (
InvalidProjectFileException
ex) when (_projectReferrers.TryGetValue(configurationMetadata, out var referrers) && !referrers.IsEmpty)
Graph\ProjectGraph.cs (16)
112
/// <exception cref="
InvalidProjectFileException
">
125
/// <exception cref="
InvalidProjectFileException
">
142
/// <exception cref="
InvalidProjectFileException
">
159
/// <exception cref="
InvalidProjectFileException
">
184
/// <see cref="
InvalidProjectFileException
" />
202
/// <exception cref="
InvalidProjectFileException
">
219
/// <exception cref="
InvalidProjectFileException
">
240
/// <exception cref="
InvalidProjectFileException
">
261
/// <exception cref="
InvalidProjectFileException
">
273
/// <exception cref="
InvalidProjectFileException
">
285
/// <exception cref="
InvalidProjectFileException
">
301
/// <exception cref="
InvalidProjectFileException
">
323
/// <exception cref="
InvalidProjectFileException
">
363
/// <exception cref="
InvalidProjectFileException
">
407
/// <exception cref="
InvalidProjectFileException
">
439
/// <exception cref="
InvalidProjectFileException
">If the evaluation of any project in the graph fails.</exception>
Instance\TaskRegistry.cs (2)
22
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
1396
/// <exception cref="
InvalidProjectFileException
">If the task factory could not be properly created an InvalidProjectFileException will be thrown</exception>
src\msbuild\src\Shared\ProjectErrorUtilities.cs (1)
4
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
src\msbuild\src\Shared\ProjectFileErrorUtilities.cs (1)
6
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
MSBuild (4)
XMake.cs (4)
1090
catch (
InvalidProjectFileException
ex)
1967
if (exception is not
InvalidProjectFileException
1968
&& !(exception is AggregateException aggregateException && aggregateException.InnerExceptions.All(innerException => innerException is
InvalidProjectFileException
))
2001
catch (
InvalidProjectFileException
ex)
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
1443
case
InvalidProjectFileException
invalidProjectFileException:
NuGet.CommandLine.XPlat (1)
Utility\MSBuildAPIUtility.cs (1)
1079
catch (Microsoft.Build.Exceptions.
InvalidProjectFileException
)