10 instantiations of InvalidProjectFileException
Microsoft.Build (10)
BackEnd\BuildManager\BuildManager.cs (1)
2077
LogInvalidProjectFileError(new
InvalidProjectFileException
(ex.Message, ex));
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
744
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
(
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);
66 references to InvalidProjectFileException
dotnet-aot (2)
parent\dotnet\MsbuildProject.cs (2)
217
catch (
InvalidProjectFileException
e)
292
catch (
InvalidProjectFileException
)
Microsoft.Build (57)
BackEnd\BuildManager\BuildManager.cs (6)
2062
if (innerException is
InvalidProjectFileException
innerProjectException)
2070
if (ex is
InvalidProjectFileException
projectException)
2107
void LogInvalidProjectFileError(
InvalidProjectFileException
projectException)
2217
if (ex is
InvalidProjectFileException
projectException)
2235
if (ex is not
InvalidProjectFileException
)
2723
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
;
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
;
2330
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>
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)
1101
catch (
InvalidProjectFileException
ex)
1979
if (exception is not
InvalidProjectFileException
1980
&& !(exception is AggregateException aggregateException && aggregateException.InnerExceptions.All(innerException => innerException is
InvalidProjectFileException
))
2013
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
)