Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to 8.8 now causes RazorTagHelper Error #27993

Closed
vsfeedback opened this issue Nov 19, 2020 · 6 comments
Closed

Upgrade to 8.8 now causes RazorTagHelper Error #27993

vsfeedback opened this issue Nov 19, 2020 · 6 comments
Assignees
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates Author: Migration Bot 🤖 The issue was created by a issue mover bot. The author may not be the actual author. ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. Status: Resolved
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


After upgrading Visual Studio for Mac 8.8, one of my projects now has the following build error:

/Users/myName/.nuget/packages/microsoft.aspnetcore.razor.design/2.2.0/build/netstandard2.0/Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets(5,5): Error MSB4018: The "RazorTagHelper" task failed unexpectedly.
System.InvalidOperationException: DOTNET_HOST_PATH is not set
  at Microsoft.AspNetCore.Razor.Tasks.DotNetToolTask.get_DotNetPath () [0x00031] in <62f26ce25b06449d800766f15a24cf6f>:0 
  at Microsoft.AspNetCore.Razor.Tasks.DotNetToolTask.GenerateFullPathToTool () [0x00000] in <62f26ce25b06449d800766f15a24cf6f>:0 
  at Microsoft.Build.Utilities.ToolTask.ComputePathToTool () [0x0004d] in /Users/builder/jenkins/workspace/build-package-osx-mono-pullrequest/pr/external/bockbuild/builds/msbuild-15/src/Utilities/ToolTask.cs:464 
  at Microsoft.Build.Utilities.ToolTask.Execute () [0x002e2] in /Users/builder/jenkins/workspace/build-package-osx-mono-pullrequest/pr/external/bockbuild/builds/msbuild-15/src/Utilities/ToolTask.cs:1441 
  at Microsoft.AspNetCore.Razor.Tasks.DotNetToolTask.Execute () [0x0004d] in <62f26ce25b06449d800766f15a24cf6f>:0 
  at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00023] in /Users/builder/jenkins/workspace/build-package-osx-mono-pullrequest/pr/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs:577 
  at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x002b9] in /Users/builder/jenkins/workspace/build-package-osx-mono-pullrequest/pr/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs:809  (MSB4018) (Identity.API)

It's likely related to this issue:

https://developercommunity.visualstudio.com/content/problem/1249786/razortaghelper-task-failed-unexpectedly.html But the workarounds found in windows do not apply to Mac, or at least they are not clear.


Original Comments

Feedback Bot on 11/11/2020, 07:01 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Enbi Zhang [MSFT] on 11/11/2020, 11:25 PM:

Thanks for your feedback.
.Net core 2.2 is already out of support and we recommend you to upgrade to supported version of the framework, such as 3.1 or 5.0. See if your issue resolved.

Paul Carver on 11/13/2020, 01:13 PM:

Enbi, that feedback is not helpful as a 2.2 application that needs to upgrade to say, 3.1 LTS, needs to at least still compile without ANY changes (after installing the latest VS update). The VS 16.8.1 upgrade totally breaks, cannot compile, an existing ASPNET Core 2.2 project. There must be a workaround or fix. You can't just release a breaking change to the IDE and then say 2.2 is out of scope.

Jamie Houseman on 11/14/2020, 06:45 AM:

I too have this issue and would like to know how to solve it. And the fix should not involve upgrading my project. You can't release updates that break people's perfectly already working code.

Jamie Houseman on 11/14/2020, 07:57 AM:

Just out of interest I updated my project to .NET 5 (By this I obviously mean .Net Core 5, thanks for the continued confusion on the naming front Microsoft) and updated every nuget package to the latest version and the issue still remains. The DOTNET_HOST_PATH is not set apparently although my terminal can find dotnet. Is this an error in VS 8.8 for Mac?

Feedback Bot on 11/15/2020, 11:29 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Artak Mkrtchyan on 11/19/2020, 10:59 AM:

Thanks for trying that out, @Jamie Houseman.
We’ll move this issue to GitHub to investigate it further.

    (please ignore this link)
    <a nodeid="129950" rel="user" href="#"></a>

Original Solutions

Feedback Bot solved on 11/16/2020, 09:54 AM, 0 votes:

Thanks for creating this issue! We figured it’s covering the same as another one we already have. Thus, we closed this one as a duplicate. We’ve transferred all votes from this ticket to the other one. For more information, see also our issue reporting guidelines.

Happy coding!

Jamie Houseman on 11/16/2020, 10:27 AM:

The other issue relates to the problem with Visual Studio on a Windows machine and the solutions are Windows centric which is what the original poster pointed out and why he opened this issue. Do you even read these things properly? We need a solution for Mac Visual studio on a Mac, NOT Windows.

Artak Mkrtchyan on 11/19/2020, 10:59 AM:

Thanks for trying that out, @Jamie Houseman.
We’ll move this issue to GitHub to investigate it further.

    (please ignore this link)
    <a nodeid="129950" rel="user" href="#"></a>
@ghost ghost added the Author: Migration Bot 🤖 The issue was created by a issue mover bot. The author may not be the actual author. label Nov 19, 2020
@mkArtakMSFT mkArtakMSFT added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Nov 19, 2020
@mkArtakMSFT
Copy link
Member

Moved this over to GitHub, as the customer is facing the same issue with .NET 5 on VS Mac.

@ghost
Copy link

ghost commented Nov 20, 2020

Thanks for contacting us.
We're moving this issue to the Next sprint planning milestone for future evaluation / consideration. We will evaluate the request when we are planning the work for the next milestone. To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

@mkArtakMSFT
Copy link
Member

@pranavkm given that few other customers reported this too, can we investigate this early? Not resolve immediately, but understand what's happening. We will make the call regarding when to fix (if one required) after that.

@ghost
Copy link

ghost commented Nov 23, 2020

Thanks for contacting us.
We're moving this issue to the Next sprint planning milestone for future evaluation / consideration. We will evaluate the request when we are planning the work for the next milestone. To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.

@pranavkm
Copy link
Contributor

Copying my response from #27249 (comment):

it looks like there are changes to the 5.0 SDK that make it incompatible with .NET Core 2.2 apps. While we attempt to avoid such incompatibilities, ASP.NET Core 2.2 has been out of support for some time now so it's difficult for us to capture these kinds of regressions.

  • We would strongly encourage targeting a supported version of ASP.NET Core to ensure continued support.
  • As a short term fix, you can acquire a 3.1 SDK (from https://dotnet.microsoft.com/download/dotnet-core/3.1) and add a global.json file to your project to pin the SDK.
{
  "sdk": {
    "version": "3.1.403"
  }
}

@pranavkm pranavkm added ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. and removed investigate labels Nov 23, 2020
@ghost ghost added the Status: Resolved label Nov 23, 2020
@ghost
Copy link

ghost commented Nov 24, 2020

This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes.

See our Issue Management Policies for more information.

@ghost ghost closed this as completed Nov 24, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 24, 2020
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates Author: Migration Bot 🤖 The issue was created by a issue mover bot. The author may not be the actual author. ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. Status: Resolved
Projects
None yet
Development

No branches or pull requests

3 participants