Visual Studio 2017 WebSite Menu “Enable C# 6 / VB 14” fails to load Nuget Package

*爱你&永不变心* 提交于 2019-12-11 00:15:27

问题


Since a while whenever I click on the WebSite menu "Enable C# 6 / VB 14" I get an exception message saying that "Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform 1.0.2" is not found in following primary resource(s): "C:\Program Files (x86)\Microsoft Web Tools\Packages"

I check the folder and see that it is upgraded to version 1.0.3. (C:\Program Files (x86)\Microsoft Web Tools\Packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.3)

How can I bring the menu again intact in order to point to the correct version?


回答1:


How can I bring the menu again intact in order to point to the correct version?

If you want to bring the menu again, you should uninstall the the package "Microsoft.CodeDom.Providers.DotNetCompilerPlatform" from your website project.

Then point to the correct version.

Besides, if you want to resolve the error "Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform 1.0.2" is not found ...", you can download that package from nuget.org with version 1.0.2. Then set it to the folder C:\Program Files (x86)\Microsoft Web Tools\Packages\. In this case, you will never get that error when you enable "Enable C# 6 / VB 14".



来源:https://stackoverflow.com/questions/45659533/visual-studio-2017-website-menu-enable-c-sharp-6-vb-14-fails-to-load-nuget-p

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!