question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compilation error on VS2019 for mac, Microsoft.AspNetCore.Mvc.Razor.Extensions.dll cannot find /usr/local/bin/host/fxr

See original GitHub issue

Describe the bug

Hi,

I’m using Visual Studio for mac (version 8.3.9(build2) ) and now any asp.net core project don’t compile due to a razor error. ` /usr/local/share/dotnet/sdk/3.0.100/Sdks/Microsoft.NET.Sdk.Razor/extensions/mvc-3-0/Microsoft.AspNetCore.Mvc.Razor.Extensions.dll

A fatal error occurred, the folder [/usr/local/bin/host/fxr] does not exist
/usr/local/share/dotnet/sdk/3.0.100/Sdks/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Microsoft.NET.Sdk.Razor.CodeGeneration.targets(99,5): error : rzc discover exited with code 131.

Done building target “ResolveTagHelperRazorGenerateInputs” in project “teste.csproj” – FAILED. `

My environment is: MacOS Mojave version 10.14.5 Visual Studio for mac

Output of dotnet --info ` $ dotnet --info .NET Core SDK (reflecting any global.json): Version: 3.0.100 Commit: 04339c3a26

Runtime Environment: OS Name: Mac OS X OS Version: 10.14 OS Platform: Darwin RID: osx.10.14-x64 Base Path: /usr/local/share/dotnet/sdk/3.0.100/

Host (useful for support): Version: 3.0.0 Commit: 7d57652f33

.NET Core SDKs installed: 2.1.201 [/usr/local/share/dotnet/sdk] 2.1.802 [/usr/local/share/dotnet/sdk] 3.0.100 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.13 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.13 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.0.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.13 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] `

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
NTaylorMullencommented, Nov 20, 2019

Closing given this looks to be a bad .NET install

1reaction
javiercncommented, Nov 20, 2019

@pjustino thanks for contacting us.

@NTaylorMullen do you have any idea?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am I getting 'Unable to find package Microsoft. ...
I am running Visual Studio 2019 and trying to develop a .NET Core 3,1 ASP MVC application. I was working just fine yesterday...
Read more >
Razor file compilation in ASP.NET Core
Razor files with a .cshtml extension are compiled at both build and publish time using the Razor SDK. Runtime compilation may be optionally ......
Read more >
Cannot find compilation library location for package when ...
After the upgrade, when I tried to run the project in VS, I got the error "Cannot find compilation library location for package"....
Read more >
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation 7.0.10
Version Downloads Last updated 8.0.0‑preview.7.23375.9 892 12 days ago 8.0.0‑preview.6.23329.11 2,344 a month ago 8.0.0‑preview.5.23302.2 2,037 2 months ago
Read more >
Compiler Error Message: CS1061: 'HtmlHelper<dynamic>' ...
I installed "Kendo UI Profiessional" v 2017.1.223, using Telerik Control Panel. I then created a simple "ASP.Net Web Application" (MVC) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found