jQuery UI打破了Visual Studio 2015 Intellisense [英] jQuery UI breaks Visual Studio 2015 Intellisense

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

问题描述

我发现JavaScript intellisense有一个令人沮丧的问题,如果我在我的 _references.js 文件中包含jQuery UI,我将丢失所有JavaScript intellisense。有没有人知道是否有办法解决这个问题,除了从 _references.js 删除jQuery UI?

I am finding a frustrating issue with JavaScript intellisense where if I include jQuery UI in my _references.js file I lose all JavaScript intellisense. Does anyone know if there is a way to fix this problem beyond removing jQuery UI from the _references.js?


  • 我知道 _references.js 文件中的更多文件会导致它减速,这是有道理的。但是,我的工作项目包括更多的文件(大约600个),没有类型问题,我的项目有20个。所以这不是太多文件的问题。

  • 我将我的项目从Git拉到另一台计算机(因此单独安装VS15)并试图包含jQuery UI文件,这仍然导致我的项目中智能感知的丢失。


    • 这不是安装问题,因为其他工作项目包括jQuery UI而且没有智能感知问题

    • I do know that more files in the _references.js file will cause it to slow down, that makes sense. However, I have projects at work which include far more files (on the order of 600) with no typesense issues, and my project has 20. So it's not a matter of "too many files."
    • I pulled my project from Git to a separate computer (therefore separate installation of VS15) and tried including the jQuery UI file and this still caused the loss of intellisense in my project.
      • It can't be an installation issue since other work projects include jQuery UI and there are no intellisense issues

      有了这些新信息,我认为它必须是我项目设置中某种更深层次的问题导致问题,而不是基于安装的问题或jQuery UI特定问题。有没有人对.sln或.csproj文件中的哪些设置可能导致JS Intellisense问题有任何想法?

      With this new information, I'm thinking it must be some type of deeper issue in my project's setup that is causing the issue as opposed to an installation based issue or jQuery UI specific issue. Does anyone have any ideas on what settings in a .sln or .csproj file might cause JS Intellisense issues?

      推荐答案

      对于那些谁遇到这个问题,我发现当jQuery UI被包含在 _references.js 中时,使用jQuery 3.x会导致instellisense中断。我的解决方案是使用NuGet更改回2.2.4版本,一切都恢复正常。

      For those who experience this issue, I found that using jQuery 3.x was causing instellisense to break when jQuery UI was included in _references.js. My solution was using NuGet to change back to version 2.2.4 and everything started to work fine again.

      这篇关于jQuery UI打破了Visual Studio 2015 Intellisense的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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