How to make XAML project to build faster on the Windows Platform
来源:互联网 发布:flv在线视频捕捉软件 编辑:程序博客网 时间:2024/05/19 20:00
XAML has a bad name/abominable in terms of the compiling time.
there are some tips in how to tune your XAML project to make it to build faster on the Windows Platform.
1. running VS elevated
2. Breaking up XAML documents when possbile (styles in separate documents)
3. Changing XAML editor to "Source Code (Text) Editor" and always open documents in full XAML view
4. Disable Resharper in all XAML documents (ctrl+alt+shift+8) and turning off solution wide analysis
5. Moving as much as possible of the VS2010 default IO location to my local drive
6. Turn off AutoRecover saving & Tracking of active items in solution explorer.
7. Disabling "rich visual experience" (but using hardware accel, still cause occasionally issues)
Also, there are some tips on the VS Settings
a. Set false to options -> Windows Forms Designer -> AutoToolboxPopulate (WPF respects this settings and if this is on, it will scan all of the project output assemblies for components or wpf controls whenever you build"
b. In the property window for xaml files, delete the CustomBuildTool "MSBuild:Compile", Every time you save a xaml file, it runs a mini compile to regenerate the .g.cs file . It does this because you might have named elements in your xaml file and you wouldn't get intellisense otherwise.. You will lose some autocreated method members before build, but it might be worth it.
c. try building out of process. You can create an external tool pointing to an msbuild command line to build project. Build then will longer grow the working set of VS. Some like command
<verbatim>
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe Arguments=/m /clp:NoItemAndPropertyList;Summary;Verbosity=minimal "Carbon VS2010.sln" /property:Optimize=false,DebugSymbols=true
</verbatim>
Some others more.
I http://code.google.com/p/solutionloadmanager/ There is an extension , which can improve the initial opening of solutions and the overall memory consumption in larger solutions.
II. set false the following: Options -> Text Editor -> XAML -> Miscellaneous -> Automatically populate toolbox items.
III. there are some tips on this page: http://support.microsoft.com/kb/2516297 which has one option: Disable the hardware acceleration.
this is just an summarization of the tips that you can apply to make the VS the even a slightly faster.
- How to make XAML project to build faster on the Windows Platform
- How to make indexing faster
- How to make searching faster
- How To Make Your Websites Faster On Mobile Devices
- How to compile VLC on Linux Platform (From the authority)
- [English Homwork] How to make money on the Internet
- how to make the XVim still available on xcode7
- How to build the andriod4.0 on unbuntu12.04
- How to build the chromium on ubuntu12.04
- How to start work on the webkit project
- How to build webkit with vs2005 on windows
- How to build your GTK+ application on Windows
- How to build the environment of MSYS in the windows?
- How to Make Windows Start Up Faster---如何提高windows启动速度
- How to build the webkitgtk
- How to build a Flex development platform based on Myeclipse8.6 & Flex4
- How to build the environment of XPCOM in Windows XP
- How to auto build and deploy project
- 以一个实例看Mule3.0中的Flow
- java面向对象
- C++:源文件与头文件有什么区别
- 求助arm串口驱动程序的overrun的解决办法?
- 关于JNA
- How to make XAML project to build faster on the Windows Platform
- Doodle推iPad版 使行程安排更容易
- jquerymoble入门教程
- Objective-C 理解之方括号[ ]的使用
- SiteMesh 3.0版本的简单使用
- java循环嵌套
- JsonCpp阅读数组需要注意的事项
- 开源SMTP协议实现 skpsmtpmessage
- mysql出现的问题