55 references to ThrowInvalidOperation
Microsoft.Build (55)
BackEnd\BuildManager\BuildManager.cs (1)
2112ErrorUtilities.ThrowInvalidOperation(exceptionResouorce);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
306ErrorUtilities.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\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)
830public void Add(T item) => ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 832public void Clear() => ErrorUtilities.ThrowInvalidOperation("OM_NotSupportedReadOnlyCollection"); 857ErrorUtilities.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"); 1804ErrorUtilities.ThrowInvalidOperation("OM_CannotAcceptParent"); 2136ErrorUtilities.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)
2235ErrorUtilities.ThrowInvalidOperation("OM_NotEvaluatedBecauseShouldEvaluateForDesignTimeIsFalse", nameof(ItemsIgnoringCondition));
Definition\ProjectCollection.cs (3)
529ErrorUtilities.ThrowInvalidOperation("UnrecognizedToolsVersion", value, toolsVersionList); 1393ErrorUtilities.ThrowInvalidOperation("OM_ProjectXmlCannotBeUnloadedDueToLoadedProjects", projectRootElement.FullPath, conflictingProject.FullPath); 2550ErrorUtilities.ThrowInvalidOperation("OM_MatchingProjectAlreadyInCollection", existing.FullPath);
Errors\InternalLoggerException.cs (2)
40ErrorUtilities.ThrowInvalidOperation("InternalLoggerExceptionOnlyThrownByEngine"); 54ErrorUtilities.ThrowInvalidOperation("InternalLoggerExceptionOnlyThrownByEngine");
ErrorUtilities.cs (5)
262ThrowInvalidOperation(resourceName, null); 277ThrowInvalidOperation(resourceName, arg0); 292ThrowInvalidOperation(resourceName, arg0, arg1); 307ThrowInvalidOperation(resourceName, arg0, arg1, arg2); 323ThrowInvalidOperation(resourceName, arg0, arg1, arg2, arg3);
FrameworkLocationHelper.cs (1)
990ErrorUtilities.ThrowInvalidOperation("FrameworkLocationHelper.CouldNotGenerateReferenceAssemblyDirectory", targetFrameworkRootPath, frameworkName.ToString(), e.Message);
Instance\ProjectInstance.cs (1)
2674ErrorUtilities.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)
321ErrorUtilities.ThrowInvalidOperation("LoggingBeforeTaskInitialization", e.Message); 619ErrorUtilities.ThrowInvalidOperation("LoggingBeforeTaskInitialization", e.Message);