11 instantiations of InvalidProjectFileException
Microsoft.Build (11)
BackEnd\BuildManager\BuildManager.cs (2)
1252
throw new
InvalidProjectFileException
(
2224
LogInvalidProjectFileError(new
InvalidProjectFileException
(ex.Message, ex));
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
827
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)
836
taskException = new
InvalidProjectFileException
(
963
throw new
InvalidProjectFileException
(ipex.Message, ipex);
Graph\GraphBuilder.cs (2)
297
throw new
InvalidProjectFileException
(
573
throw new
InvalidProjectFileException
(
Graph\ProjectInterpretation.cs (1)
487
throw new
InvalidProjectFileException
(
parent\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);
parent\Shared\ProjectFileErrorUtilities.cs (1)
153
throw new
InvalidProjectFileException
(projectFile.File, projectFile.Line, projectFile.Column, projectFile.EndLine, projectFile.EndColumn, message, errorSubCategory, errorCode, helpKeyword, innerException);
67 references to InvalidProjectFileException
dotnet-aot (2)
parent\dotnet\MsbuildProject.cs (2)
217
catch (
InvalidProjectFileException
e)
292
catch (
InvalidProjectFileException
)
Microsoft.Build (58)
BackEnd\BuildManager\BuildManager.cs (7)
1225
catch (
InvalidProjectFileException
e)
2209
if (innerException is
InvalidProjectFileException
innerProjectException)
2217
if (ex is
InvalidProjectFileException
projectException)
2254
void LogInvalidProjectFileError(
InvalidProjectFileException
projectException)
2364
if (ex is
InvalidProjectFileException
projectException)
2382
if (ex is not
InvalidProjectFileException
)
2871
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
;
444
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)
797
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)
522
catch (
InvalidProjectFileException
e)
948
else if (type == typeof(
InvalidProjectFileException
))
952
InvalidProjectFileException
ipex = (
InvalidProjectFileException
)taskException;
Construction\ProjectRootElement.cs (3)
24
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
1680
/// If the new state has invalid XML or MSBuild syntax, then this method throws an <see cref="
InvalidProjectFileException
"/>.
2063
catch (
InvalidProjectFileException
)
Definition\Project.cs (5)
30
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
375
/// <exception cref="
InvalidProjectFileException
">If the evaluation fails.</exception>
1940
catch (
InvalidProjectFileException
ex)
1983
catch (
InvalidProjectFileException
ex)
3570
catch (
InvalidProjectFileException
ex)
Definition\ProjectCollection.cs (3)
27
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
451
catch (
InvalidProjectFileException
ex2)
1359
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
;
2398
catch (
InvalidProjectFileException
ex)
Graph\GraphBuilder.cs (1)
555
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)
21
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
1191
/// <exception cref="
InvalidProjectFileException
">If the task factory could not be properly created an InvalidProjectFileException will be thrown</exception>
parent\Shared\ProjectErrorUtilities.cs (1)
4
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
parent\Shared\ProjectFileErrorUtilities.cs (1)
6
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
Microsoft.DotNet.HotReload.Watch (1)
Process\LaunchSettingsProfile.cs (1)
111
catch (
InvalidProjectFileException
e)
MSBuild (4)
XMake.cs (4)
1114
catch (
InvalidProjectFileException
ex)
1998
if (exception is not
InvalidProjectFileException
1999
&& !(exception is AggregateException aggregateException && aggregateException.InnerExceptions.All(innerException => innerException is
InvalidProjectFileException
))
2032
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
)