WP7-Build Action详解

WP7-Build Action详解,第1张

概述转自:http://www.cnblogs.com/Tealcwu/archive/2010/07/12/1775904.html 什么是Build Action? Build Action is how the file relates to the build and deployment processes. 在Visual Studio 2010的Windows Phone工程中, 有多个

转自:http://www.cnblogs.com/Tealcwu/archive/2010/07/12/1775904.html

什么是Build Action? Build Action is how the file relates to the build and deployment processes.

在Visual Studio 2010的windows Phone工程中, 有多个build action。它们之间有什么区别呢?

* None: 此文件不参与编译也不被输出。比如:工程中的文档文件,readme.txt。

* Compile: 参与编译并输出。主要是代码文件。

* Content: 不参与编译,但会被输出。

* Embedded Resource: 此文件被嵌入到主工程生成的DLL或exe中。主要是资源文件。

* ApplicationDeFinition: 和Page类似,但只用于Silverlight的启动页面(默认是App.xaml)。

* Page: Silverligh中所有的usercontrol/page/chilDWindow xaml都属于"Page” build,其它的build action不能将code behind文件和xaml文件连接起来。

* CodeAnalysisDictionary: 自定义的CodeAnalysis字典。(参考http://blogs.msdn.com/b/codeanalysis/archive/2007/08/20/new-for-visual-studio-2008-custom-dictionaries.aspx)

* Resource:embeds the file in a shared (by all files in the assembly with similar setting) assembly manifest resource named Appname.g.resources

* SplashScreen: Silverlight的欢迎界面。

* DesignData: Sample data types will be created as faux types. Use this Build Action when the sample data types are not creatable or have read-only propertIEs that you want to defined sample data values for.

* DesignDataWithDesignTimeCreatableTypes: Sample data types will be created using the types defined in the sample data file. Use this Build Action when the sample data types are creatable using their default empty constructor.

* EntityDeploy: 适用于Entity框架。

 

相关链接:

1. Build Action: http://msdn.microsoft.com/en-us/library/aa984472(VS.71).aspx

2. filename Property: http://msdn.microsoft.com/en-us/library/0c6xyb66(VS.80).aspx

3. Resource file: http://msdn.microsoft.com/en-us/library/cc296240(VS.95).aspx

4. http://stackoverflow.com/questions/145752/what-are-the-various-build-action-settings-in-vs-net-project-properties-and-wha

总结

以上是内存溢出为你收集整理的WP7-Build Action详解全部内容,希望文章能够帮你解决WP7-Build Action详解所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1070504.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存