53 references to ProjectFileErrorUtilities
Microsoft.Build (53)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
622
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (7)
131
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(new BuildEventFileInfo(location), "SdkResolverNoDllOrManifest", subfolder.FullName);
194
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(new BuildEventFileInfo(location), "SdkResolverDllInManifestMissing", pathToManifest, string.Empty);
200
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(new BuildEventFileInfo(location), e, "SdkResolverManifestInvalid", pathToManifest, e.Message);
205
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(new BuildEventFileInfo(location), "SdkResolverDllInManifestMissing", pathToManifest, manifest.Path);
279
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(new BuildEventFileInfo(location), e, "CouldNotLoadSdkResolverAssembly", resolverPath, e.Message);
296
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(new BuildEventFileInfo(location), e.InnerException ?? e, "CouldNotLoadSdkResolver", type.Name, message);
300
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(new BuildEventFileInfo(location), e, "CouldNotLoadSdkResolver", type.Name, e.Message);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
1057
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(new BuildEventFileInfo(data.ProjectFullPath), "ProjectUpgradeNeededToVcxProj", data.ProjectFullPath);
Construction\ProjectRootElement.cs (4)
2026
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(new BuildEventFileInfo(projectFile), "ProjectUpgradeNeededToVcxProj", projectFile);
2038
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(new BuildEventFileInfo(projectFile), ex, "InvalidProjectFile", ex.Message);
2093
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(fileInfo, ex, "InvalidProjectFile", ex.Message);
2117
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(fileInfo, "InvalidProjectFile", ex.Message);
Construction\Solution\ProjectInSolution.cs (3)
16
using ProjectFileErrorUtilities = Microsoft.Build.Shared.
ProjectFileErrorUtilities
;
416
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(proj != null || solutionFolder != null, "SubCategoryForSolutionParsingErrors",
458
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(proj != null || solutionFolder != null, "SubCategoryForSolutionParsingErrors",
Construction\Solution\SolutionFile.cs (29)
26
using ProjectFileErrorUtilities = Microsoft.Build.Shared.
ProjectFileErrorUtilities
;
314
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(
322
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(
560
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(
571
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(
603
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(
617
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(
635
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(
657
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(
729
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(new BuildEventFileInfo(_solutionFile), "InvalidProjectFile", e.Message);
874
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(
896
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(
941
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(false, "SubCategoryForSolutionParsingErrors",
987
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(false, "SubCategoryForSolutionParsingErrors",
995
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(
1056
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(match.Success, "SubCategoryForSolutionParsingErrors",
1074
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(match.Success, "SubCategoryForSolutionParsingErrors",
1100
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(line != null, "SubCategoryForSolutionParsingErrors",
1284
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(proj.RelativePath.IndexOfAny(Path.GetInvalidPathChars()) == -1,
1291
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(proj.RelativePath.Length > 0,
1506
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(match.Success, "SubCategoryForSolutionParsingErrors",
1559
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(new BuildEventFileInfo(FullPath), "ProjectUpgradeNeededToVcxProj", proj.RelativePath);
1606
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(match.Success, "SubCategoryForSolutionParsingErrors",
1614
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(proj != null, "SubCategoryForSolutionParsingErrors",
1655
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(configurationNames.Length == 2, "SubCategoryForSolutionParsingErrors",
1667
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(fullConfigurationName == configurationNames[1].Trim(), "SubCategoryForSolutionParsingErrors",
1680
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(
1732
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(nameValue.Length == 2, "SubCategoryForSolutionParsingErrors",
1780
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(configurationPlatformParts.Length <= 2, "SubCategoryForSolutionParsingErrors",
Construction\Solution\SolutionProjectGenerator.cs (5)
287
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(dependencyProject != null, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo(solutionFile.FullPath), "SolutionParseProjectDepNotFoundError", project.ProjectGuid, dependencyProjectGuid);
698
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(
1156
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(
1226
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(
1312
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(
Definition\Toolset.cs (1)
1049
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(new BuildEventFileInfo(currentTasksFile, e),
Evaluation\LazyItemEvaluator.RemoveOperation.cs (1)
27
ProjectFileErrorUtilities
.VerifyThrowInvalidProjectFile(
Graph\GraphBuilder.cs (1)
348
ProjectFileErrorUtilities
.ThrowInvalidProjectFile(