打开Javascript文件时Visual Studio 2015崩溃 [英] Visual Studio 2015 crashes when opening Javascript files

查看:273
本文介绍了打开Javascript文件时Visual Studio 2015崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我使用Visual Studio 2015 Pro RTM打开Javascript文件时,它崩溃并重新启动。没有错误消息。

Every time I open a Javascript file with Visual Studio 2015 Pro RTM it crashes and restarts. No error messages.

我做了修复,但我还没有尝试卸载和重新安装。
其他人有这个问题吗?

I did a repair but I haven't tried uninstalling and reinstalling yet. Is anyone else having this problem?

推荐答案

Ok我终于搞清楚了。它与_references.js文件有关。

Ok I finally figured it out. It does have something to do with the _references.js file.


我必须清除我的_references.js文件。

I had to clear out my _references.js file. After I had cleared out the contents of that file, visual studio would no longer crash when opening up javascript files.

这样可以正常工作,但是在打开文件时不会崩溃。你可能会失去你的一些你的智能感知在javascript。
当我打开一个没有包括在_references.js文件中的js文件时,如果其中有条目,则会出现此问题。所有我需要做的是右键单击_references.js文件,然后单击更新Javascript引用,它工作正常。

This does work but you could lose your some of your intellisense in javascript. The issue occurs when I opened a js file that was not included in the _references.js file if there are entries in there. All I had to do is right click the _references.js file and click "Update Javascript References" and it worked fine.

感谢大家的帮助。

这篇关于打开Javascript文件时Visual Studio 2015崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆