简体   繁体   English

VS 2008中的XAML源文件编译

[英]XAML source file compilation in VS 2008

I have a C# project in a VS 2008 solution, which includes a lot of .xaml (for WPF) and other independent .cs source files. 我在VS 2008解决方案中有一个C#项目,其中包括很多.xaml(用于WPF)和其他独立的.cs源文件。 Is there any possibility to compile a single .xaml file, without having to build / rebuild the entire project in VS2008, because that would take a lot of unnecessary time? 是否有可能编译单个.xaml文件,而无需在VS2008中构建/重建整个项目,因为这将花费很多不必要的时间? The context menu on the .xaml file (right click) and the "Build" menu don't seem to have this option. .xaml文件(右键单击)和“构建”菜单上的上下文菜单似乎没有此选项。

Try to exclude those xaml files from your project (right click on the file on solution explorer). 尝试从项目中排除那些xaml文件(在解决方案资源管理器上右键单击该文件)。 (and if you don't use MVVM) comment line from .cs files where you are using decalartion from xaml files. (并且,如果您不使用MVVM).cs文件中的注释行,您正在使用xaml文件中的十进制。 When you need the xaml load the back. 当您需要xaml时,请装回。

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

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