55 references to ThrowInvalidOperation
Microsoft.Build (55)
BackEnd\BuildManager\BuildManager.cs (1)
2127ErrorUtilities.ThrowInvalidOperation(exceptionResouorce);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
305ErrorUtilities.ThrowInvalidOperation("UnableToCancel");
BackEnd\Shared\BuildRequestConfiguration.cs (2)
713ErrorUtilities.ThrowInvalidOperation("CacheFileInaccessible", cacheFile, e); 752ErrorUtilities.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\HashSet.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)
813public void Add(T item) => ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 815public void Clear() => ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 840ErrorUtilities.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)
280set => ErrorUtilities.ThrowInvalidOperation("OM_CannotGetSetCondition"); 1822ErrorUtilities.ThrowInvalidOperation("OM_CannotAcceptParent"); 2154ErrorUtilities.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)
2236ErrorUtilities.ThrowInvalidOperation("OM_NotEvaluatedBecauseShouldEvaluateForDesignTimeIsFalse", nameof(ItemsIgnoringCondition));
Definition\ProjectCollection.cs (3)
529ErrorUtilities.ThrowInvalidOperation("UnrecognizedToolsVersion", value, toolsVersionList); 1390ErrorUtilities.ThrowInvalidOperation("OM_ProjectXmlCannotBeUnloadedDueToLoadedProjects", projectRootElement.FullPath, conflictingProject.FullPath); 2536ErrorUtilities.ThrowInvalidOperation("OM_MatchingProjectAlreadyInCollection", existing.FullPath);
Errors\InternalLoggerException.cs (2)
40ErrorUtilities.ThrowInvalidOperation("InternalLoggerExceptionOnlyThrownByEngine"); 54ErrorUtilities.ThrowInvalidOperation("InternalLoggerExceptionOnlyThrownByEngine");
ErrorUtilities.cs (5)
258ThrowInvalidOperation(resourceName, null); 273ThrowInvalidOperation(resourceName, arg0); 288ThrowInvalidOperation(resourceName, arg0, arg1); 303ThrowInvalidOperation(resourceName, arg0, arg1, arg2); 319ThrowInvalidOperation(resourceName, arg0, arg1, arg2, arg3);
FrameworkLocationHelper.cs (1)
990ErrorUtilities.ThrowInvalidOperation("FrameworkLocationHelper.CouldNotGenerateReferenceAssemblyDirectory", targetFrameworkRootPath, frameworkName.ToString(), e.Message);
Instance\ProjectInstance.cs (1)
2492ErrorUtilities.ThrowInvalidOperation("OM_ProjectInstanceImmutable");
Logging\NullCentralLogger.cs (1)
58ErrorUtilities.ThrowInvalidOperation("Should not receive any events other than build started or finished");
Modifiers.cs (1)
602ErrorUtilities.ThrowInvalidOperation("Shared.InvalidFilespecForTransform", modifier, itemSpec, e.Message);
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)
176ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 185ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 201ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 219ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 227ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 250ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection");
TaskLoggingHelper.cs (2)
320ErrorUtilities.ThrowInvalidOperation("LoggingBeforeTaskInitialization", e.Message); 618ErrorUtilities.ThrowInvalidOperation("LoggingBeforeTaskInitialization", e.Message);