Visual Studio 中项目文件属性的Build action 设置
2015-07-02 11:17
561 查看
Visual
Studio 中项目文件属性的Build
action 设置
None: The file is not included in the project output group and is not compiled in the build process. An example is a text file that contains documentation, such as a Readme file.无,不进行输出和编译。
Compile: The file is compiled into the build output. This setting is used for code files.
编译文件 ,通常为.cs代码文件。
Content: Allows you to retrieve a file (in same dir as assembly) as a stream via Application.GetContentStream( uri ). For this method to work, it needs a AssemblyAssociatedContentFile custom attribute
which VS graciously adds when you mark a file as "Content"
生成为内容,需要设置copy to output directory,从相应的程序目录中去读取此文件。
Embedded resource: embeds the file in an exclusive assembly manifest resource.
把文件嵌入到清单资源中,读取方法 http://blog.csdn.net/kevindr/article/details/46723187
Resource (wpf only): embeds the file in a shared (by all files in the assembly with similar setting) assembly manifest resource named AppName.g.resources.
(仅用于WPF)将文件嵌入到AppName.g.resources中,
Page (wpf only): Used to compile a
xamlfile
into
baml.
The
bamlis
then embedded with the same technique as
Resource(i.e.
available as `AppName.g.resources)
(仅用于WPF)将xaml文件编译为baml文件。
ApplicationDefinition (wpf only): Mark the XAML/class file that defines your application. You specify the code-behind with the x:Class="Namespace.ClassName"
and set the startup form/page with StartupUri="Window1.xaml"
(仅用于WPF)定义应用程序
SplashScreen (wpf only): An image that is marked as
SplashScreenis
shown automatically when an WPF application loads, and then fades
(仅用于WPF)
DesignData: Compiles xaml viewmodels so that usercontrols can be previewed with sample data in visual studio (uses mock types)
(仅用于WPF) 编译xmal viewmodel,以便能够预览
DesignDataWithDesignTimeCreatableTypes: Compiles xaml viewmodels so that usercontrols can be previewed with sample data in visual studio (uses
actual types)
EntityDeploy: (Entity Framework): used
to deploy the Entity Framework artifacts
用于Entity Framework
CodeAnalysisDictionary: A xml file containing custom
word dictionary for spelling rules
相关文章推荐
- Visual Studio 2010 Service Pack 1多国语言版下载
- CUDA 4.0 + Visual Studio 开发环境搭建
- Visual Studio 2012/2010/2008 远程调试
- Web.config配置文件详解
- 小白探访WINDOWS下的驱动(五) 第一个HELLO驱动(插曲-调试环境设置HOST&TARGET)
- 无法打开文件“opencv_calib3d240d.lib”
- dcmtk提示无法解析的外部符号(unresolved external symbol)的解决方法
- Visual Studio 2013之Opendv配置【未完】
- Remote debug in windows
- 安装visual studio时遇到的IE限制问题
- Visual Studio 的断点调试技巧
- VC++错误:error C2065: 'SHCreateDirectoryEx' : undeclared identifier
- 在控制台(Console)环境下编译Windows GUI程序
- 在win8.1系统下运行VC++6.0
- 第三次学长授课之C#编写记事本----感想
- [OpenCV] -- Win8.1下配置OpenCV的Qt(MSVC2013编译器)开发环境
- openframawork的下载与安装
- 在WinDOWS X64下 Cuda NVCC 与 Intel C/C++ compiler联合使用的问题
- windows环境下配置Visual Studio的cl编译器
- Bin 和 App_Code、App_Themes文件夹