How to disable real time compilation in Visual Studio 2015

萝らか妹 提交于 2020-01-01 02:08:10

问题


Is there a way to disable the real time compilation in Visual Studio 2015?

It's grinding to a halt whenever I make changes that have a ripple effect throughout my dependent code. The error list updates even before saving the C# file I'm working on, filling it with CS**** compiler errors as I'm typing.


回答1:


In visual Studio 2015 go to tools, options, text editor, C#, Advanced and uncheck Enable full solution analysis. This should stop your problem as the solution won't be checked every time unless you build it.

Hope this helps you




回答2:


This is not an answer, but I want to post a screenshot of what my Tools > Options > Text Editor > C# > Advanced section looks like.

I am using VS2015 Community Update 1 and I do not have the "Enable full solution analysis" option, or some of the other ones in the screenshot above.




回答3:


Go to Options -> Text Editor\C# -> Advanced: Uncheck "Underline errors" and "Show live semantic errors". Its also called compile on save. Worked on MS Visual Studio Ultimate 2013, haven't installed the 2015 yet.




回答4:


Go to Options -> TextEditor -> C# -> Advanced. Under Editor Help, disable "show diagnostics" for closed files. This option disables the analyzers from running on all closed files in the solution and the analysis is performed only on the Open/Active files in VS.




回答5:


I found one setting in Resharper. Sheck it and you dont see the squiggles. Resharper Options/Code Inspection/Settings/Visual Studio integratinon/Suppress Visual Studio squiggles.




回答6:


I just disable this in the Error List window. There is a drop down with these options:

  • Build + IntelliSense
  • Build Only
  • IntelliSense Only

If I select Build Only, it does not try to find compilation errors in real time.



来源:https://stackoverflow.com/questions/30203387/how-to-disable-real-time-compilation-in-visual-studio-2015

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