Skip to content

Logging through an out-of-date TaskLoggingHelper causes MSB0001 #4792

@rainersigwald

Description

@rainersigwald

MSB0001: Internal MSBuild Error: ContextID 10 should have been in the ID-to-project file mapping but wasn't!


at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Object[] args)
    at Microsoft.Build.BackEnd.Logging.LoggingService.GetAndVerifyProjectFileFromContext(BuildEventContext context)
    at Microsoft.Build.BackEnd.Logging.LoggingService.LogBuildEvent(BuildEventArgs buildEvent)
    at Microsoft.Build.BackEnd.TaskHost.LogMessageEvent(BuildMessageEventArgs e)
    at Microsoft.Build.Utilities.TaskLoggingHelper.LogMessage(MessageImportance importance, String message, Object[] messageArgs)
    at NuGet.Build.MSBuildLogger.LogMessage(INuGetLogMessage logMessage, MessageImportance importance, LogMessageWithDetails logWithDetails, LogMessageAsString logAsString)
    at NuGet.Build.MSBuildLogger.LogForNonMono(INuGetLogMessage message)
    at NuGet.Build.MSBuildLogger.Log(ILogMessage message)
    at NuGet.Common.LoggerBase.Log(LogLevel level, String data)
    at NuGet.Common.LoggerBase.LogVerbose(String data)
    at NuGet.Protocol.Plugins.LogRequestHandler.Log(LogRequest request)
    at NuGet.Protocol.Plugins.LogRequestHandler.HandleResponseAsync(IConnection connection, Message request, IResponseHandler responseHandler, CancellationToken cancellationToken)

Metadata

Metadata

Assignees

Labels

Area: DebuggabilityIssues impacting the diagnosability of builds, including logging and clearer error messages.Area: EngineIssues impacting the core execution of targets and tasks.triaged

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions