19 references to ThrowInvalidProject
Microsoft.Build (19)
BackEnd\Components\RequestBuilder\BatchingEngine.cs (1)
160
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "CannotReferenceItemMetadataWithoutItemName", unqualifiedMetadataName);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
692
ProjectErrorUtilities.
ThrowInvalidProject
(targetLocation, "CircularDependency", targetSpecification.TargetName);
704
ProjectErrorUtilities.
ThrowInvalidProject
(targetLocation, "CircularDependency", targetSpecification.TargetName);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
652
ProjectErrorUtilities.
ThrowInvalidProject
(_targetChildInstance.Location, "TaskDeclarationOrUsageError", _taskNode.Name);
877
ProjectErrorUtilities.
ThrowInvalidProject
(taskLoggingContext.Task.Location, "CircularDependency", taskLoggingContext.TargetLoggingContext.Target.Name);
Construction\ProjectRootElement.cs (1)
1913
ProjectErrorUtilities.
ThrowInvalidProject
(sdkLocation, "InvalidSdkFormat", sdks);
Definition\ProjectCollection.cs (1)
355
ProjectErrorUtilities.
ThrowInvalidProject
(ElementLocation.Create("MSBUILD"), "InvalidProperty", ex.Message);
Definition\Toolset.cs (1)
1083
ProjectErrorUtilities.
ThrowInvalidProject
(
Evaluation\Evaluator.cs (3)
1798
ProjectErrorUtilities.
ThrowInvalidProject
(importElement.SdkLocation, "SDKResolverCriticalFailure", e.Message);
1823
ProjectErrorUtilities.
ThrowInvalidProject
(importElement.SdkLocation, "CouldNotResolveSdk", sdkReference.ToString());
2585
ProjectErrorUtilities.
ThrowInvalidProject
(importLocationInProject, "ImportedProjectFromVSDistribution", path);
Evaluation\Expander.cs (3)
2275
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "UnknownItemFunction", functionName);
2288
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "UnknownItemFunction", functionName);
2294
ProjectErrorUtilities.
ThrowInvalidProject
(elementLocation, "UnknownItemFunction", functionName);
Evaluation\ProjectParser.cs (5)
134
ProjectErrorUtilities.
ThrowInvalidProject
(ElementLocation.Create(_document.FullPath), "NoRootProjectElement", XMakeElements.project);
142
ProjectErrorUtilities.
ThrowInvalidProject
(element.Location, "ProjectMustBeInMSBuildXmlNamespace",
203
ProjectErrorUtilities.
ThrowInvalidProject
(childElement.Location, "ErrorWarningMessageNotSupported", childElement.Name);
624
ProjectErrorUtilities.
ThrowInvalidProject
(childElement.Location, "ItemDefinitionGroupNotLegalInsideTarget", childElement.Name);
899
ProjectErrorUtilities.
ThrowInvalidProject
(element.Location, "InvalidSdkElementName", element.Name);