Visual Studio 2010 : Build Action详解(转载)
什么是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
在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
原文地址:http://www.cnblogs.com/Tealcwu/archive/2010/07/12/1775904.html
分类:
Visual Studio
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 软件产品开发中常见的10个问题及处理方法
· .NET 原生驾驭 AI 新基建实战系列:向量数据库的应用与畅想
· 从问题排查到源码分析:ActiveMQ消费端频繁日志刷屏的秘密
· 一次Java后端服务间歇性响应慢的问题排查记录
· dotnet 源代码生成器分析器入门
· 互联网不景气了那就玩玩嵌入式吧,用纯.NET开发并制作一个智能桌面机器人(四):结合BotSharp
· 软件产品开发中常见的10个问题及处理方法
· Vite CVE-2025-30208 安全漏洞
· 《HelloGitHub》第 108 期
· MQ 如何保证数据一致性?
2009-10-06 ASP.NET中的I18N与L10N(1)