-
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
Omnisharp Razor DLL fix #2178
Omnisharp Razor DLL fix #2178
Conversation
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
d425bb3
to
06dc859
Compare
06dc859
to
ac426a8
Compare
…ode. This also requires building some runtime and MSBuild packages as net46. Unfortunately we can't rely on the targeting packs for these because source-build does produce the packages but without the net46 runtime currently.
ac426a8
to
7e7abb0
Compare
cc @michaelbarkdoll and @tvildo if you'd like to try out this fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to get ported to 6.0 as well? If so will you handle this?
Yes, logged #2232 to track that. |
Fixes #2006.
Build and ship a net46 version of MS.NET.SDK.Razor to support Omnisharp (and therefore VSCode Intellisense). Some complications:
[fail]: OmniSharp.MSBuild.ProjectLoader The "Microsoft.AspNetCore.Razor.Tasks.DiscoverDefaultScopedCssItems" task could not be loaded from the assembly sdk/5.0.203/Sdks/Microsoft.NET.Sdk.Razor/build/netstandard2.0/../../tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll. Invalid Image Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
BuildAllConfigurations
still has errors in source-build. (XXX log issue XXX):/home/chris/dotnet_source-build/artifacts/src/runtime.478b2f8c0e480665f6c52c95cd57830784dc9560/src/libraries/System.Configuration.ConfigurationManager/ref/System.Configuration.ConfigurationManager.cs(1383,140): error CS0433: The type 'PermissionSet' exists in both 'System.Security.Permissions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' [/home/chris/dotnet_source-build/artifacts/src/runtime.478b2f8c0e480665f6c52c95cd57830784dc9560/src/libraries/System.Configuration.ConfigurationManager/ref/System.Configuration.ConfigurationManager.csproj] /home/chris/dotnet_source-build/artifacts/src/runtime.478b2f8c0e480665f6c52c95cd57830784dc9560/src/libraries/System.Configuration.ConfigurationManager/ref/System.Configuration.ConfigurationManager.cs(1471,125): error CS0433: The type 'PermissionSet' exists in both 'System.Security.Permissions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' [/home/chris/dotnet_source-build/artifacts/src/runtime.478b2f8c0e480665f6c52c95cd57830784dc9560/src/libraries/System.Configuration.ConfigurationManager/ref/System.Configuration.ConfigurationManager.csproj] /home/chris/dotnet_source-build/artifacts/src/runtime.478b2f8c0e480665f6c52c95cd57830784dc9560/src/libraries/System.ServiceProcess.ServiceController/ref/System.ServiceProcess.ServiceController.cs(39,43): error CS0433: The type 'EventLog' exists in both 'System.Diagnostics.EventLog, Version=5.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' [/home/chris/dotnet_source-build/artifacts/src/runtime.478b2f8c0e480665f6c52c95cd57830784dc9560/src/libraries/System.ServiceProcess.ServiceController/ref/System.ServiceProcess.ServiceController.csproj]