10 instantiations of InvalidProjectFileException
Microsoft.Build (10)
BackEnd\BuildManager\BuildManager.cs (1)
2002
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);
70 references to InvalidProjectFileException
dotnet (7)
CommandFactory\CommandResolution\ProjectFactory.cs (1)
58
catch (
InvalidProjectFileException
ex)
Commands\Run\RunCommand.cs (2)
224
catch (
InvalidProjectFileException
e)
634
catch (
InvalidProjectFileException
e)
Commands\Run\RunCommandSelector.cs (1)
200
catch (
InvalidProjectFileException
)
Commands\Solution\Add\SolutionAddCommand.cs (1)
171
catch (
InvalidProjectFileException
ex)
MsbuildProject.cs (2)
209
catch (
InvalidProjectFileException
e)
281
catch (
InvalidProjectFileException
)
Microsoft.Build (57)
BackEnd\BuildManager\BuildManager.cs (6)
1987
if (innerException is
InvalidProjectFileException
innerProjectException)
1995
if (ex is
InvalidProjectFileException
projectException)
2032
void LogInvalidProjectFileError(
InvalidProjectFileException
projectException)
2142
if (ex is
InvalidProjectFileException
projectException)
2160
if (ex is not
InvalidProjectFileException
)
2648
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>
1955
catch (
InvalidProjectFileException
ex)
1998
catch (
InvalidProjectFileException
ex)
3780
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)
1036
catch (
InvalidProjectFileException
)
1886
if (exception is not
InvalidProjectFileException
1887
&& !(exception is AggregateException aggregateException && aggregateException.InnerExceptions.All(innerException => innerException is
InvalidProjectFileException
))
1920
catch (
InvalidProjectFileException
ex)
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
1416
case
InvalidProjectFileException
invalidProjectFileException:
NuGet.CommandLine.XPlat (1)
Utility\MSBuildAPIUtility.cs (1)
1077
catch (Microsoft.Build.Exceptions.
InvalidProjectFileException
)