10 instantiations of InvalidProjectFileException
Microsoft.Build (10)
BackEnd\BuildManager\BuildManager.cs (1)
1961
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)
806
taskException = new
InvalidProjectFileException
(
933
throw new
InvalidProjectFileException
(ipex.Message, ipex);
Graph\GraphBuilder.cs (2)
287
throw new
InvalidProjectFileException
(
563
throw new
InvalidProjectFileException
(
Graph\ProjectInterpretation.cs (1)
435
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);
69 references to InvalidProjectFileException
dotnet (7)
CommandFactory\CommandResolution\ProjectFactory.cs (1)
58
catch (
InvalidProjectFileException
ex)
Commands\Run\RunCommand.cs (2)
225
catch (
InvalidProjectFileException
e)
624
catch (
InvalidProjectFileException
e)
Commands\Run\RunCommandSelector.cs (1)
196
catch (
InvalidProjectFileException
)
Commands\Solution\Add\SolutionAddCommand.cs (1)
171
catch (
InvalidProjectFileException
ex)
MsbuildProject.cs (2)
205
catch (
InvalidProjectFileException
e)
277
catch (
InvalidProjectFileException
)
Microsoft.Build (56)
BackEnd\BuildManager\BuildManager.cs (6)
1946
if (innerException is
InvalidProjectFileException
innerProjectException)
1954
if (ex is
InvalidProjectFileException
projectException)
1991
void LogInvalidProjectFileError(
InvalidProjectFileException
projectException)
2100
if (ex is
InvalidProjectFileException
projectException)
2118
if (ex is not
InvalidProjectFileException
)
2602
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)
11
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
434
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)
789
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)
426
catch (
InvalidProjectFileException
e)
496
catch (
InvalidProjectFileException
e)
918
else if (type == typeof(
InvalidProjectFileException
))
922
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>
1923
catch (
InvalidProjectFileException
ex)
1966
catch (
InvalidProjectFileException
ex)
3698
catch (
InvalidProjectFileException
ex)
Definition\ProjectCollection.cs (3)
26
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
385
catch (
InvalidProjectFileException
ex2)
1262
catch (
InvalidProjectFileException
ex)
Definition\ToolsetReader.cs (2)
16
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
575
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
;
2253
catch (
InvalidProjectFileException
ex)
Graph\GraphBuilder.cs (1)
545
catch (
InvalidProjectFileException
ex) when (_projectReferrers.TryGetValue(configurationMetadata, out var referrers) && !referrers.IsEmpty)
Graph\ProjectGraph.cs (15)
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
">
Instance\TaskRegistry.cs (2)
21
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
1405
/// <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)
845
catch (
InvalidProjectFileException
)
1697
if (exception is not
InvalidProjectFileException
1698
&& !(exception is AggregateException aggregateException && aggregateException.InnerExceptions.All(innerException => innerException is
InvalidProjectFileException
))
1731
catch (
InvalidProjectFileException
ex)
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
1413
case
InvalidProjectFileException
invalidProjectFileException:
NuGet.CommandLine.XPlat (1)
Utility\MSBuildAPIUtility.cs (1)
1076
catch (Microsoft.Build.Exceptions.
InvalidProjectFileException
)