{"action":"created","issue":{"url":"https://api.github.com/repos/madskristensen/BundlerMinifier/issues/365","repository_url":"https://api.github.com/repos/madskristensen/BundlerMinifier","labels_url":"https://api.github.com/repos/madskristensen/BundlerMinifier/issues/365/labels{/name}","comments_url":"https://api.github.com/repos/madskristensen/BundlerMinifier/issues/365/comments","events_url":"https://api.github.com/repos/madskristensen/BundlerMinifier/issues/365/events","html_url":"https://github.com/madskristensen/BundlerMinifier/issues/365","id":325422865,"node_id":"MDU6SXNzdWUzMjU0MjI4NjU=","number":365,"title":"VSTS Build Issue - .Net SDK 2.1-rc1","user":{"login":"twurm","id":23122687,"node_id":"MDQ6VXNlcjIzMTIyNjg3","avatar_url":"https://avatars0.githubusercontent.com/u/23122687?v=4","gravatar_id":"","url":"https://api.github.com/users/twurm","html_url":"https://github.com/twurm","followers_url":"https://api.github.com/users/twurm/followers","following_url":"https://api.github.com/users/twurm/following{/other_user}","gists_url":"https://api.github.com/users/twurm/gists{/gist_id}","starred_url":"https://api.github.com/users/twurm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twurm/subscriptions","organizations_url":"https://api.github.com/users/twurm/orgs","repos_url":"https://api.github.com/users/twurm/repos","events_url":"https://api.github.com/users/twurm/events{/privacy}","received_events_url":"https://api.github.com/users/twurm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-22T18:59:56Z","updated_at":"2018-06-13T15:11:24Z","closed_at":null,"author_association":"NONE","body":"### Installed product versions\r\n- Visual Studio: 2017 Enterprise (15.7.2)\r\n- This extension: 2.8.391\r\n- VSTS Agent Version: 2.133.3\r\n- .Net Core SDK Version: 2.1 RC1\r\n\r\n### Description\r\nBuilds run through VSTS private agent using:\r\n\r\n`dotnet publish -c Release ProjectXYZ.csproj` fail with the following exception.  However running the same command on the build agent outside of a VSTS build works correctly.  Removing the BundlerMinifier nupkg allows the build to complete as expected though VSTS.\r\n\r\n2018-05-22T18:46:44.6543788Z   Bundler: Begin processing bundleconfig.json\r\n2018-05-22T18:46:44.7128680Z MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.\r\n2018-05-22T18:46:44.7334336Z Microsoft.Build.Shared.InternalErrorException: MSB0001: Internal MSBuild Error: ContextID 33 should have been in the ID-to-project file mapping but wasn't!\r\n2018-05-22T18:46:44.7334729Z    at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Object[] args)\r\n2018-05-22T18:46:44.7347754Z    at Microsoft.Build.BackEnd.Logging.LoggingService.GetAndVerifyProjectFileFromContext(BuildEventContext context)\r\n2018-05-22T18:46:44.7348045Z    at Microsoft.Build.BackEnd.Logging.LoggingService.LogBuildEvent(BuildEventArgs buildEvent)\r\n2018-05-22T18:46:44.7350081Z    at Microsoft.Build.BackEnd.TaskHost.LogErrorEvent(BuildErrorEventArgs e)\r\n2018-05-22T18:46:44.7351916Z    at Microsoft.Build.Utilities.TaskLoggingHelper.LogError(String subcategory, String errorCode, String helpKeyword, String file, Int32 lineNumber, Int32 columnNumber, Int32 endLineNumber, Int32 endColumnNumber, String message, Object[] messageArgs)\r\n2018-05-22T18:46:44.7355463Z    at BundlerMinifier.BundlerBuildTask.BundleMinifier_ErrorMinifyingFile(Object sender, MinifyFileEventArgs e)\r\n2018-05-22T18:46:44.7355742Z    at BundlerMinifier.BundleMinifier.MinifyBundle(Bundle bundle)\r\n2018-05-22T18:46:44.7356938Z    at BundlerMinifier.BundleFileProcessor.ProcessBundle(String baseFolder, Bundle bundle)\r\n2018-05-22T18:46:44.7357413Z    at BundlerMinifier.BundleFileProcessor.Process(String fileName, IEnumerable`1 bundles)\r\n2018-05-22T18:46:44.7357929Z    at BundlerMinifier.BundlerBuildTask.Execute()\r\n2018-05-22T18:46:44.7358367Z    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()\r\n2018-05-22T18:46:44.7359019Z    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)\r\n2018-05-22T18:46:44.7359883Z    at Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(TaskLoggingContext taskLoggingContext, ItemBucket bucket, IDictionary`2 taskIdentityParameters, TaskHost taskHost, TaskExecutionMode howToExecuteTask)\r\n2018-05-22T18:46:44.7360551Z    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary`2 lookupHash)\r\n2018-05-22T18:46:44.7361083Z    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TaskExecutionMode mode, Lookup lookup)\r\n2018-05-22T18:46:44.7361759Z    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken)\r\n2018-05-22T18:46:44.7362574Z    at Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution)\r\n2018-05-22T18:46:44.7363516Z    at Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(ITaskBuilder taskBuilder, BuildRequestEntry requestEntry, ProjectLoggingContext projectLoggingContext, CancellationToken cancellationToken)\r\n2018-05-22T18:46:44.7364122Z    at Microsoft.Build.BackEnd.TargetBuilder.ProcessTargetStack(ITaskBuilder taskBuilder)\r\n2018-05-22T18:46:44.7364696Z    at Microsoft.Build.BackEnd.TargetBuilder.BuildTargets(ProjectLoggingContext loggingContext, BuildRequestEntry entry, IRequestBuilderCallback callback, String[] targetNames, Lookup baseLookup, CancellationToken cancellationToken)\r\n2018-05-22T18:46:44.7365310Z    at Microsoft.Build.BackEnd.RequestBuilder.BuildProject()\r\n2018-05-22T18:46:44.7365740Z    at Microsoft.Build.BackEnd.RequestBuilder.BuildAndReport()\r\n2018-05-22T18:46:44.7366199Z    at Microsoft.Build.BackEnd.RequestBuilder.RequestThreadProc(Boolean setThreadParameters)\r\n2018-05-22T18:46:44.7366515Z \r\n2018-05-22T18:46:44.7464722Z MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.\r\n2018-05-22T18:46:44.7465115Z Microsoft.Build.Shared.InternalErrorException: MSB0001: Internal MSBuild Error: ContextID 33 should have been in the ID-to-project file mapping but wasn't!\r\n2018-05-22T18:46:44.7465570Z    at Microsoft.Build.CommandLine.MSBuildApp.BuildProject(String projectFile, String[] targets, String toolsVersion, Dictionary`2 globalProperties, Dictionary`2 restoreProperties, ILogger[] loggers, LoggerVerbosity verbosity, DistributedLoggerRecord[] distributedLoggerRecords, Int32 cpuCount, Boolean enableNodeReuse, TextWriter preprocessWriter, Boolean detailedSummary, ISet`1 warningsAsErrors, ISet`1 warningsAsMessages, Boolean enableRestore, ProfilerLogger profilerLogger, Boolean enableProfiler)\r\n2018-05-22T18:46:44.7467331Z    at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine)\r\n2018-05-22T18:46:44.7469547Z \r\n2018-05-22T18:46:44.7482143Z Unhandled Exception: Microsoft.Build.Shared.InternalErrorException: MSB0001: Internal MSBuild Error: ContextID 33 should have been in the ID-to-project file mapping but wasn't!\r\n2018-05-22T18:46:44.7483048Z    at Microsoft.Build.CommandLine.MSBuildApp.BuildProject(String projectFile, String[] targets, String toolsVersion, Dictionary`2 globalProperties, Dictionary`2 restoreProperties, ILogger[] loggers, LoggerVerbosity verbosity, DistributedLoggerRecord[] distributedLoggerRecords, Int32 cpuCount, Boolean enableNodeReuse, TextWriter preprocessWriter, Boolean detailedSummary, ISet`1 warningsAsErrors, ISet`1 warningsAsMessages, Boolean enableRestore, ProfilerLogger profilerLogger, Boolean enableProfiler)\r\n2018-05-22T18:46:44.7483789Z    at Microsoft.Build.CommandLine.MSBuildApp.Execute(String[] commandLine)\r\n2018-05-22T18:46:44.7484137Z    at Microsoft.Build.CommandLine.MSBuildApp.Main(String[] args)\r\n"},"comment":{"url":"https://api.github.com/repos/madskristensen/BundlerMinifier/issues/comments/396973364","html_url":"https://github.com/madskristensen/BundlerMinifier/issues/365#issuecomment-396973364","issue_url":"https://api.github.com/repos/madskristensen/BundlerMinifier/issues/365","id":396973364,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Njk3MzM2NA==","user":{"login":"rockstardev","id":5191402,"node_id":"MDQ6VXNlcjUxOTE0MDI=","avatar_url":"https://avatars1.githubusercontent.com/u/5191402?v=4","gravatar_id":"","url":"https://api.github.com/users/rockstardev","html_url":"https://github.com/rockstardev","followers_url":"https://api.github.com/users/rockstardev/followers","following_url":"https://api.github.com/users/rockstardev/following{/other_user}","gists_url":"https://api.github.com/users/rockstardev/gists{/gist_id}","starred_url":"https://api.github.com/users/rockstardev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rockstardev/subscriptions","organizations_url":"https://api.github.com/users/rockstardev/orgs","repos_url":"https://api.github.com/users/rockstardev/repos","events_url":"https://api.github.com/users/rockstardev/events{/privacy}","received_events_url":"https://api.github.com/users/rockstardev/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T15:11:24Z","updated_at":"2018-06-13T15:11:24Z","author_association":"COLLABORATOR","body":"Thread - let me know if someone submits PR that fixes and I'll merge it promptly."}}
{"actor":{"display_login":"rockstardev"}}