当我向我的项目添加新的 WebForm 时,出现以下错误:
Could not load file or assembly 'Microsoft.VisualStudio.JSLS,Version=14.0.0.0 , Culture=neutral , PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.the system can not find the file specified.
我尝试创建新的网站项目并尝试重新安装 VS 2015,但这没有帮助。
最佳答案
这是 Visual Studio 2015 的一个已知错误。officially-endorsed solution来自 Microsoft 的已发布在 MSDN 上:
If the “Tools for Universal Windows Apps Development” are still installed:
- Go to Programs and Features, select Visual Studio 2105, click Change.
- In Visual Studio setup, click Modify.
- Deselect the feature “Tools for Universal Windows App Development”
- Select “Tools for Universal Windows App Development” again, and click Update.
If you have already uninstalled the “Tools for Universal Windows Apps Development”:
- Reinstall “Tools for Universal Windows App Development”
Or take the following steps to reinstall the JavaScript project system and language service:
a. Download the installer for your edition of Visual Studio, e.g.,
vs_community.exe.b. Open a CMD window, and run the following command: vs_community.exe /modify /installselectableitems JavaScript_Hidden
/passive
关于c# - 添加新 WebForm 时 Visual Studio 2015 中的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31874643/