10 instantiations of InvalidProjectFileException
Microsoft.Build (10)
BackEnd\BuildManager\BuildManager.cs (2)
1273
throw new
InvalidProjectFileException
(
2252
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)
855
taskException = new
InvalidProjectFileException
(
982
throw new
InvalidProjectFileException
(ipex.Message, ipex);
Errors\ProjectErrorUtilities.cs (1)
1067
=> throw new
InvalidProjectFileException
(
Graph\GraphBuilder.cs (2)
298
throw new
InvalidProjectFileException
(
574
throw new
InvalidProjectFileException
(
Graph\ProjectInterpretation.cs (1)
488
throw new
InvalidProjectFileException
(
166 references to InvalidProjectFileException
dotnet-aot (2)
parent\dotnet\MsbuildProject.cs (2)
217
catch (
InvalidProjectFileException
e)
292
catch (
InvalidProjectFileException
)
Microsoft.Build (157)
BackEnd\BuildManager\BuildManager.cs (7)
1246
catch (
InvalidProjectFileException
e)
2237
if (innerException is
InvalidProjectFileException
innerProjectException)
2245
if (ex is
InvalidProjectFileException
projectException)
2282
void LogInvalidProjectFileError(
InvalidProjectFileException
projectException)
2392
if (ex is
InvalidProjectFileException
projectException)
2410
if (ex is not
InvalidProjectFileException
)
2902
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)
13
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
445
void LogInvalidProjectFileError(BuildEventContext buildEventContext,
InvalidProjectFileException
invalidProjectFileException);
BackEnd\Components\Logging\LoggingContext.cs (1)
232
internal void LogInvalidProjectFileError(
InvalidProjectFileException
invalidProjectFileException)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (2)
16
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
156
public void LogInvalidProjectFileError(BuildEventContext buildEventContext,
InvalidProjectFileException
invalidProjectFileException)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
801
catch (
InvalidProjectFileException
ex)
BackEnd\Components\RequestBuilder\TargetEntry.cs (2)
20
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
587
catch (
InvalidProjectFileException
e)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (5)
424
catch (
InvalidProjectFileException
e)
525
catch (
InvalidProjectFileException
e)
967
else if (type == typeof(
InvalidProjectFileException
))
971
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)
31
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
376
/// <exception cref="
InvalidProjectFileException
">If the evaluation fails.</exception>
1941
catch (
InvalidProjectFileException
ex)
1984
catch (
InvalidProjectFileException
ex)
3574
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)
17
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
591
catch (
InvalidProjectFileException
ex)
Errors\InvalidProjectFileException.cs (1)
74
internal InvalidProjectFileException(string message,
InvalidProjectFileException
innerException)
Errors\ProjectErrorUtilities.cs (101)
12
/// Provides methods for reporting project-file errors as <see cref="
InvalidProjectFileException
"/>.
21
/// Throws an <see cref="
InvalidProjectFileException
"/> without formatting arguments or a subcategory.
25
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
31
/// Throws an <see cref="
InvalidProjectFileException
"/> with one format argument and no subcategory.
36
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
42
/// Throws an <see cref="
InvalidProjectFileException
"/> with two format arguments and no subcategory.
48
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
54
/// Throws an <see cref="
InvalidProjectFileException
"/> with three format arguments and no subcategory.
61
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
67
/// Throws an <see cref="
InvalidProjectFileException
"/> with formatting arguments and no subcategory.
72
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
78
/// Throws an <see cref="
InvalidProjectFileException
"/> with an inner exception, no formatting arguments,
84
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
90
/// Throws an <see cref="
InvalidProjectFileException
"/> with an inner exception, one format argument,
97
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
103
/// Throws an <see cref="
InvalidProjectFileException
"/> with an inner exception, two format arguments,
111
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
122
/// Throws an <see cref="
InvalidProjectFileException
"/> with an inner exception, three format arguments,
131
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
143
/// Throws an <see cref="
InvalidProjectFileException
"/> with an inner exception and no subcategory.
149
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
159
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory and no formatting arguments.
164
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
170
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory and one format argument.
176
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
182
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory and two format arguments.
189
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
200
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory and three format arguments.
208
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
220
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory and formatting arguments.
226
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
236
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory, an inner exception,
243
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
253
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory, an inner exception,
261
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
272
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory, an inner exception,
281
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
293
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory, an inner exception,
303
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
316
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory, an inner exception,
324
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
335
/// Throws an <see cref="
InvalidProjectFileException
"/> without a subcategory when
341
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
346
/// Throws an <see cref="
InvalidProjectFileException
"/> with one format argument and no subcategory when
354
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
363
/// Throws an <see cref="
InvalidProjectFileException
"/> with two format arguments and no subcategory when
373
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
383
/// Throws an <see cref="
InvalidProjectFileException
"/> with three format arguments and no subcategory when
395
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
406
/// Throws an <see cref="
InvalidProjectFileException
"/> with four format arguments and no subcategory when
420
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
432
/// Throws an <see cref="
InvalidProjectFileException
"/> with formatting arguments and no subcategory when
439
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
453
/// Throws an <see cref="
InvalidProjectFileException
"/> with an inner exception and no subcategory when
460
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
469
/// Throws an <see cref="
InvalidProjectFileException
"/> with an inner exception, one format argument,
478
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
488
/// Throws an <see cref="
InvalidProjectFileException
"/> with an inner exception, two format arguments,
499
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
510
/// Throws an <see cref="
InvalidProjectFileException
"/> with an inner exception, three format arguments,
523
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
536
/// Throws an <see cref="
InvalidProjectFileException
"/> with an inner exception, four format arguments,
551
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
565
/// Throws an <see cref="
InvalidProjectFileException
"/> with an inner exception, formatting arguments,
573
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
588
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory when
595
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
609
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory and one format argument when
618
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
633
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory and two format arguments when
644
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
660
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory and three format arguments when
673
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
690
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory and four format arguments when
705
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
723
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory and formatting arguments when
731
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
746
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory and an inner exception when
754
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
769
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory, an inner exception,
779
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
795
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory, an inner exception,
807
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
824
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory, an inner exception,
838
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
856
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory, an inner exception,
872
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
891
/// Throws an <see cref="
InvalidProjectFileException
"/> with a subcategory, an inner exception,
900
/// <exception cref="
InvalidProjectFileException
"><paramref name="condition"/> is <see langword="false"/>.</exception>
916
/// Formats a project-file error without format arguments and throws an <see cref="
InvalidProjectFileException
"/>.
922
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
940
/// Formats a project-file error with one format argument and throws an <see cref="
InvalidProjectFileException
"/>.
947
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
966
/// Formats a project-file error with two format arguments and throws an <see cref="
InvalidProjectFileException
"/>.
974
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
994
/// Formats a project-file error with three format arguments and throws an <see cref="
InvalidProjectFileException
"/>.
1003
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
1024
/// Formats a project-file error with an argument array and throws an <see cref="
InvalidProjectFileException
"/>.
1031
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
1050
/// Throws an <see cref="
InvalidProjectFileException
"/> from formatted diagnostic information.
1058
/// <exception cref="
InvalidProjectFileException
">Always thrown.</exception>
Evaluation\Evaluator.cs (2)
32
using InvalidProjectFileException = Microsoft.Build.Exceptions.
InvalidProjectFileException
;
2402
catch (
InvalidProjectFileException
ex)
Graph\GraphBuilder.cs (1)
556
catch (
InvalidProjectFileException
ex) when (_projectReferrers.TryGetValue(configurationMetadata, out var referrers) && !referrers.IsEmpty)
Graph\ProjectGraph.cs (16)
113
/// <exception cref="
InvalidProjectFileException
">
126
/// <exception cref="
InvalidProjectFileException
">
143
/// <exception cref="
InvalidProjectFileException
">
160
/// <exception cref="
InvalidProjectFileException
">
185
/// <see cref="
InvalidProjectFileException
" />
203
/// <exception cref="
InvalidProjectFileException
">
220
/// <exception cref="
InvalidProjectFileException
">
241
/// <exception cref="
InvalidProjectFileException
">
262
/// <exception cref="
InvalidProjectFileException
">
274
/// <exception cref="
InvalidProjectFileException
">
286
/// <exception cref="
InvalidProjectFileException
">
302
/// <exception cref="
InvalidProjectFileException
">
324
/// <exception cref="
InvalidProjectFileException
">
364
/// <exception cref="
InvalidProjectFileException
">
408
/// <exception cref="
InvalidProjectFileException
">
440
/// <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
;
1196
/// <exception cref="
InvalidProjectFileException
">If the task factory could not be properly created an InvalidProjectFileException will be thrown</exception>
Microsoft.DotNet.HotReload.Watch (1)
Process\LaunchSettingsProfile.cs (1)
111
catch (
InvalidProjectFileException
e)
MSBuild (4)
XMake.cs (4)
1162
catch (
InvalidProjectFileException
ex)
2061
if (exception is not
InvalidProjectFileException
2062
&& !(exception is AggregateException aggregateException && aggregateException.InnerExceptions.All(innerException => innerException is
InvalidProjectFileException
))
2095
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
)