-
Notifications
You must be signed in to change notification settings - Fork 132
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
RHEL/CentOS 8 missing net46/Microsoft.NET.Sdk.Razor.Tasks.dll #2006
Comments
For context: CentOS builds .NET from source, based on the infrastructure in this repo dotnet/source-build. That's why it's different from the build produced by Microsoft. We currently have a patch that removes the /cc @omajid (FWIW, the test script at #1950 seems to work fine with CentOS 8's 5.0.102.) |
Omnisharp needs separate tasks/dlls for separate project types. Testing with just a `console` project is not sufficient to verify that all project types work. We need to test with each project type that we care about to make sure it works. See dotnet/source-build#2006 for more information.
We got an error message from #2008 showing what the patch was avoiding:
|
On Centos 33 Omnisharp was crashing with exception and to solve that I had to install additional package: |
Hey folks. Any progress on this? Is there anything I can do to help here? |
Hey, @crummel @dseefeld @MichaelSimons. Any updates on this? This is affecting all users of source-build (Fedora, Arch, etc) and makes the IDE experience (eg, VSCode) really bad. Can we prioritize a fix for this? Do we need help from any other team? |
We have a planning/triage meeting on Monday, I'll make sure to bring this up as something to prioritize. I'll noodle with the MSBuild issue a bit, I know we had to change that patch for the feature branch upgrade so maybe we can fix that now. |
I just hit this one too.
|
Is there a workaround for this issue? It makes the IDE (via omnisharp) unusable. |
Adding the reference to Microsoft.NET.Sdk.Razor as was suggested: |
Thanks! Work for me. I too try install bin packages |
Hey @dleeapho can we increase the priority of this issue and it's short-term and long-term fixes too? Due to this bug, the IDE experience (auto-completion/Intellisense) is completely broken for ASP.NET projects in 5.0. |
I'm looking at this now, I'm hoping to get it done this week. |
As another workaround, you can use the vscode dev containers and docker to develop inside the .NET 5 docker template image |
From the VS Code C# extension side of things, OmniSharp (the C# language server) runs on Full Framework (Mono or .NET Framework) to support the greatest number of project types. This means when the Web SDK targets are loading MSBuild tasks, it is trying to load the Full Framework build of the assemblies (net46 or net472) instead of the .NET 5 assemblies shipped with the source build version of teh .NET SDK. |
Omnisharp needs separate tasks/dlls for separate project types. Testing with just a `console` project is not sufficient to verify that all project types work. We need to test with each project type that we care about to make sure it works. See dotnet/source-build#2006 for more information.
Also running into this issue |
Omnisharp needs separate tasks/dlls for separate project types. Testing with just a `console` project is not sufficient to verify that all project types work. We need to test with each project type that we care about to make sure it works. See dotnet/source-build#2006 for more information.
Omnisharp needs separate tasks/dlls for separate project types. Testing with just a `console` project is not sufficient to verify that all project types work. We need to test with each project type that we care about to make sure it works. See dotnet/source-build#2006 for more information.
Omnisharp needs separate tasks/dlls for separate project types. Testing with just a `console` project is not sufficient to verify that all project types work. We need to test with each project type that we care about to make sure it works. See dotnet/source-build#2006 for more information.
This was fixed by #2178 (thanks, @crummel!) and included in the latest release: https://github.com/dotnet/source-build/releases/tag/v5.0.205-SDK AFAIK, updates have gone out for CentOS 8, Fedora, and RHEL. I see that the Arch Linux package has been updated too: archlinux/svntogit-community@055b029#diff-3e341d2d9c67be01819b25b25d5e53ea3cdf3a38d28846cda85a195eb9b7203a Is there anything else to do here? Can we close this issue now? |
I can confirm the issue has been fixed on Arch Linux with the latest version. |
Closing this issue then, thanks for testing! Fixed by #2178. |
Omnisharp needs separate tasks/dlls for separate project types. Testing with just a `console` project is not sufficient to verify that all project types work. We need to test with each project type that we care about to make sure it works. See dotnet/source-build#2006 for more information.
Hi, I have an issue with a missing .dll file.
My C# extension no longer loads in VS Code due to this missing dll.
dotnet/vscode-csharp#4360
On the Ubuntu 20.04 LTS the dotnet-sdk-5.0 package has the following dll files:
/usr/share/dotnet/sdk/5.0.102/Sdks/Microsoft.NET.Sdk.Razor/tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll
/usr/share/dotnet/sdk/5.0.102/Sdks/Microsoft.NET.Sdk.Razor/tasks/net5.0/Microsoft.NET.Sdk.Razor.Tasks.dll
However, my CentOS 8 only has the following file installed after upgrading to 5.0.102:
/usr/lib64/dotnet/sdk/5.0.102/Sdks/Microsoft.NET.Sdk.Razor/tasks/net5.0/Microsoft.NET.Sdk.Razor.Tasks.dll
So it appears that in RHEL/CentOS 8 the following file(s) are missing:
/usr/lib64/dotnet/sdk/5.0.102/Sdks/Microsoft.NET.Sdk.Razor/tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll
ls -la tasks/net46/
-rw-r--r-- 1 root root 77192 Dec 14 20:17 Microsoft.NET.Sdk.Razor.Tasks.dll
-rw-r--r-- 1 root root 189832 Dec 14 20:17 System.Collections.Immutable.dll
-rw-r--r-- 1 root root 464776 Dec 14 20:17 System.Reflection.Metadata.dll
The text was updated successfully, but these errors were encountered: