简体   繁体   English

Visual Studio 2015 XAML文件冻结

[英]Visual Studio 2015 XAML files freezing

I've recently updated the version of VS from 2013 to 2015. I work on WPF and obviously, I have to modify *.xaml files; 我最近更新了从2013年到2015年的VS版本。我在WPF上工作,显然,我必须修改* .xaml文件; every time I leave a .xaml file Visual Studio freezes for about 15-20 seconds. 每次我离开.xaml文件时,Visual Studio都会冻结大约15-20秒。 I cannot work like that! 我不能那样工作! I've uninstalled Reshaper, but no change. 我已经卸载了Reshaper,但没有改变。 I've closed even the designer process, but still - no success. 我甚至关闭了设计师的流程,但仍然没有成功。

When I try to run VS without administrative rights it freezes even more (about 30 seconds). 当我尝试在没有管理权限的情况下运行VS时,它会冻结甚至更多(大约30秒)。 If I try to open the same solution with VS2013 it works very well. 如果我尝试用VS2013打开相同的解决方案,它的效果非常好。

Station details: 12 GB RAM, i7 2.5GHz, SSD, Windows 10 x64 电台详细信息:12 GB RAM,i7 2.5GHz,SSD,Windows 10 x64

Does anyone face the same problem? 有没有人面临同样的问题? How to solve it?! 怎么解决?!

It is not a plugin problem, VS2015 seems a little buggy to me. 这不是一个插件问题,VS2015对我来说似乎有些小问题。 You can update to the latest version (Update 3), which works much better for me. 您可以更新到最新版本(更新3),这对我来说效果更好。

I think the problem is that VS added support for many different frameworks in a short amount of time. 我认为问题是VS在很短的时间内增加了对许多不同框架的支持。 It's normal that the version is buggy, but I'm sure they will solve it with the updates. 版本是错误的,这是正常的,但我相信他们会通过更新来解决它。

If you can work without designer, try opening and editing just the source (XAML) code. 如果您可以在没有设计人员的情况下工作,请尝试仅打开和编辑源代码(XAML)代码。 Personally, I find it easier to work with XAML source and intellisense than using a VS XAML designer. 就个人而言,我发现使用XAML源和智能感知比使用VS XAML设计器更容易。

To do this, 去做这个,

  • right click on a XAML file 右键单击XAML文件
  • select Open with... 选择打开方式...
  • select Source Code (Text) editor 选择源代码(文本)编辑器
  • if you like this mode, click Set as Default to always open just XAML. 如果您喜欢此模式,请单击“设为默认值”以始终只打开XAML。

If you need designer later, you can open in designer mode by selecting XAML Designer or Automatic Editor Selector. 如果以后需要设计器,可以通过选择XAML Designer或自动编辑器选择器在设计器模式下打开。

"was having similar issue with 2015 pro. During the simplest of changes it would take forever. What I did was go under debug\\options\\web forms designer\\ (turned off refactoring). This solved all my issues, not there is no delay while working, only when I do a build or switch to another section or form, it will write all changes at once." “与2015 pro有类似的问题。在最简单的更改过程中,它将需要永远。我所做的是调试\\ options \\ web forms designer \\(关闭重构)。这解决了我所有的问题,没有没有延迟在工作时,只有当我进行构建或切换到另一个部分或表单时,它才会立即写入所有更改。“

source: http://blog.geocortex.com/2007/12/07/slow-visual-studio-performance-solved/ 来源: http//blog.geocortex.com/2007/12/07/slow-visual-studio-performance-solved/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM