54 references to ThrowInvalidOperation
Microsoft.Build (54)
BackEnd\BuildManager\BuildManager.cs (1)
2300ErrorUtilities.ThrowInvalidOperation(exceptionResouorce);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
308ErrorUtilities.ThrowInvalidOperation("UnableToCancel");
BackEnd\Shared\BuildRequestConfiguration.cs (2)
724ErrorUtilities.ThrowInvalidOperation("CacheFileInaccessible", cacheFile, e); 763ErrorUtilities.ThrowInvalidOperation("CacheFileInaccessible", cacheFile, e);
Collections\ReadOnlyConvertingDictionary.cs (7)
81set => ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 89ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 105ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 133ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 141ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 149ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedConvertingCollectionValueToBacking"); 171ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (3)
261ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 414ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 816ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
Construction\ProjectChooseElement.cs (1)
53set => ErrorUtilities.ThrowInvalidOperation("OM_CannotGetSetCondition");
Construction\ProjectElementContainer.cs (3)
839public void Add(T item) => ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 841public void Clear() => ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 866ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
Construction\ProjectExtensionsElement.cs (1)
56set => ErrorUtilities.ThrowInvalidOperation("OM_CannotGetSetCondition");
Construction\ProjectOtherwiseElement.cs (1)
51set => ErrorUtilities.ThrowInvalidOperation("OM_CannotGetSetCondition");
Construction\ProjectRootElement.cs (3)
296set => ErrorUtilities.ThrowInvalidOperation("OM_CannotGetSetCondition"); 1834ErrorUtilities.ThrowInvalidOperation("OM_CannotAcceptParent"); 2171ErrorUtilities.ThrowInvalidOperation("NoReloadOnUnsavedChanges", null);
Construction\ProjectUsingTaskBodyElement.cs (1)
55set => ErrorUtilities.ThrowInvalidOperation("OM_CannotGetSetCondition");
Construction\ProjectUsingTaskParameterElement.cs (1)
52set => ErrorUtilities.ThrowInvalidOperation("OM_CannotGetSetCondition");
Construction\UsingTaskParameterGroupElement.cs (1)
54set => ErrorUtilities.ThrowInvalidOperation("OM_CannotGetSetCondition");
Definition\Project.cs (1)
2241ErrorUtilities.ThrowInvalidOperation("OM_NotEvaluatedBecauseShouldEvaluateForDesignTimeIsFalse", nameof(ItemsIgnoringCondition));
Definition\ProjectCollection.cs (3)
562ErrorUtilities.ThrowInvalidOperation("UnrecognizedToolsVersion", value, toolsVersionList); 1455ErrorUtilities.ThrowInvalidOperation("OM_ProjectXmlCannotBeUnloadedDueToLoadedProjects", projectRootElement.FullPath, conflictingProject.FullPath); 2018ErrorUtilities.ThrowInvalidOperation("OM_MatchingProjectAlreadyInCollection", existing.FullPath);
Errors\InternalLoggerException.cs (2)
40ErrorUtilities.ThrowInvalidOperation("InternalLoggerExceptionOnlyThrownByEngine"); 54ErrorUtilities.ThrowInvalidOperation("InternalLoggerExceptionOnlyThrownByEngine");
ErrorUtilities.cs (5)
282ThrowInvalidOperation(resourceName, null); 297ThrowInvalidOperation(resourceName, arg0); 312ThrowInvalidOperation(resourceName, arg0, arg1); 327ThrowInvalidOperation(resourceName, arg0, arg1, arg2); 343ThrowInvalidOperation(resourceName, arg0, arg1, arg2, arg3);
FrameworkLocationHelper.cs (1)
1028ErrorUtilities.ThrowInvalidOperation("FrameworkLocationHelper.CouldNotGenerateReferenceAssemblyDirectory", targetFrameworkRootPath, frameworkName.ToString(), e.Message);
Instance\ProjectInstance.cs (1)
2773ErrorUtilities.ThrowInvalidOperation("OM_ProjectInstanceImmutable");
Logging\NullCentralLogger.cs (1)
58ErrorUtilities.ThrowInvalidOperation("Should not receive any events other than build started or finished");
ReadOnlyCollection.cs (3)
101ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 109ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 155ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
ReadOnlyEmptyCollection.cs (3)
87ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 95ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 118ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
ReadOnlyEmptyDictionary.cs (6)
166ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 175ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 191ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 209ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 217ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 240ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
TaskLoggingHelper.cs (2)
321ErrorUtilities.ThrowInvalidOperation("LoggingBeforeTaskInitialization", e.Message); 619ErrorUtilities.ThrowInvalidOperation("LoggingBeforeTaskInitialization", e.Message);