Updated all template project.json tools to use 1.1 #1125

Closed
opened 2025-08-09 17:18:58 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @Gimly on 1/9/2017

I figured out what was causing the issue that I had opened in #534. It was not really linked to Angular or anything as the error message could suggest, but to the publishing process.

I'm publishing my app through Bitbucket Pipelines that runs a script in a Docker image to create a CI/CD system. The script I was using was simply running dotnet restore and then dotnet publish. What I hadn't seen was that dotnet publish-iis that is called by the post publish methods was failing. It was failing because on the docker image I'm using (microsoft/aspnetcore-build) only the .Net Core 1.1 is installed. The issue was that there were still tools dependencies in the project.json file that were depending on .Net Core 1.0, and running those tools were making the publish-iis fail.

Using the latest 1.1.0-preview4-final versions of

  • Microsoft.AspNetCore.Razor.Tools
  • Microsoft.AspNetCore.Server.IISIntegration.Tools
  • Microsoft.DotNet.Watcher.Tools

fixes the issue and makes the all publish work correctly on the docker machine.

*Originally created by @Gimly on 1/9/2017* I figured out what was causing the issue that I had opened in #534. It was not really linked to Angular or anything as the error message could suggest, but to the publishing process. I'm publishing my app through Bitbucket Pipelines that runs a script in a Docker image to create a CI/CD system. The script I was using was simply running `dotnet restore` and then `dotnet publish`. What I hadn't seen was that `dotnet publish-iis` that is called by the post publish methods was failing. It was failing because on the docker image I'm using (microsoft/aspnetcore-build) only the .Net Core 1.1 is installed. The issue was that there were still tools dependencies in the project.json file that were depending on .Net Core 1.0, and running those tools were making the publish-iis fail. Using the latest 1.1.0-preview4-final versions of - Microsoft.AspNetCore.Razor.Tools - Microsoft.AspNetCore.Server.IISIntegration.Tools - Microsoft.DotNet.Watcher.Tools fixes the issue and makes the all publish work correctly on the docker machine.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1125
No description provided.