29 references to NotNull
Microsoft.Build (19)
BackEnd\BuildManager\BuildManager.cs (1)
3382Assumed.NotNull(castPacket, $"Incorrect packet type: {packet.Type} should have been {expectedType}");
BackEnd\BuildManager\LegacyThreadingData.cs (4)
130Assumed.NotNull(legacyThreadingEvents, $"We're trying to wait on the legacy thread for submission {submissionId}, but that submission has not been registered."); 148Assumed.NotNull(legacyThreadingEvents, $"We're trying to track when the legacy thread for submission {submissionId} goes inactive, but that submission has not been registered."); 169Assumed.NotNull(legacyThreadingEvents, $"We're trying to signal that the legacy thread is ready for submission {submissionId} to execute, but that submission has not been registered"); 191Assumed.NotNull(legacyThreadingEvents, $"We're trying to signal that submission {submissionId} is done with the legacy thread, but that submission has not been registered");
BackEnd\Components\Communications\TranslatorExtensions.cs (1)
83Assumed.NotNull(constructor, $"{typeName} must have a private parameterless constructor");
BackEnd\Components\Logging\LoggingService.cs (1)
1596Assumed.NotNull(buildEventArgs, $"Unknown logging item in queue: {loggingEvent.GetType().FullName}");
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (3)
139Assumed.NotNull(projectFile, $"ContextID {buildEventContext.ProjectContextId} should have been in the ID-to-project file mapping but wasn't!"); 179Assumed.NotNull(projectFile, $"ContextID {buildEventContext.ProjectContextId} should have been in the ID-to-project file mapping but wasn't!"); 331Assumed.NotNull(projectFile, $"ContextID {buildEventContext.ProjectContextId} should have been in the ID-to-project file mapping but wasn't!");
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
622Assumed.NotNull(plugin.PluginInstance, $"Plugin '{plugin.Name}' instance is null"); 900Assumed.NotNull(plugin.PluginInstance, $"Plugin '{plugin.Name}' instance is null");
BackEnd\Components\Scheduler\SchedulingData.cs (2)
491Assumed.NotNull(returnValue, $"Global Request Id {globalRequestId} has not been assigned and cannot be retrieved."); 723Assumed.NotNull(request, $"Request {globalRequestId} was expected to be in state {state} but is not scheduled at all (it may be unscheduled or may be unknown to the system.)");
Evaluation\Expander.cs (1)
4327Assumed.NotNull(receiverType, $"Type information for {typeName} was present in the allowlist cache as {assemblyQualifiedTypeName} but the type could not be loaded.");
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
676Assumed.NotNull(startedEvent, $"Project finished event for {e.ProjectFile} received without matching start event");
Resources\AssemblyResources.cs (1)
85Assumed.NotNull(resource, $"Missing resource '{name}'");
src\msbuild\src\Shared\LogMessagePacketBase.cs (1)
448Assumed.NotNull(_buildEvent, $"Not Supported LoggingEventType {_eventType}");
src\msbuild\src\Shared\ResourceUtilities.cs (1)
450Assumed.NotNull(unformattedMessage, $"The resource string \"{resourceName}\" was not found.");
Microsoft.Build.Framework (1)
ReflectableTaskPropertyInfo.cs (1)
80Assumed.NotNull(_propertyInfo, $"Could not find property {Name} on type {_taskType.FullName} that the task factory indicated should exist.");
Microsoft.Build.Tasks.Core (4)
AssemblyResources.cs (2)
27Assumed.NotNull(resource, $"Missing resource '{name}'"); 43Assumed.NotNull(resource, $"Missing resource '{name}'");
src\msbuild\src\Shared\LogMessagePacketBase.cs (1)
448Assumed.NotNull(_buildEvent, $"Not Supported LoggingEventType {_eventType}");
src\msbuild\src\Shared\ResourceUtilities.cs (1)
450Assumed.NotNull(unformattedMessage, $"The resource string \"{resourceName}\" was not found.");
Microsoft.Build.Utilities.Core (2)
AssemblyResources.cs (1)
29Assumed.NotNull(resource, $"Missing resource '{name}'");
src\msbuild\src\Shared\ResourceUtilities.cs (1)
450Assumed.NotNull(unformattedMessage, $"The resource string \"{resourceName}\" was not found.");
MSBuild (3)
AssemblyResources.cs (1)
33Assumed.NotNull(resource, $"Missing resource '{name}'");
src\msbuild\src\Shared\LogMessagePacketBase.cs (1)
448Assumed.NotNull(_buildEvent, $"Not Supported LoggingEventType {_eventType}");
src\msbuild\src\Shared\ResourceUtilities.cs (1)
450Assumed.NotNull(unformattedMessage, $"The resource string \"{resourceName}\" was not found.");