如何在文件上设置构建操作 - 属性窗口中未显示高级属性 [英] How to set Build Action on a file - Advanced Properties Not Displayed in properties window
问题描述
在 VS2010 中,我的 ASP NET 4.0 项目中的文件没有可用的高级属性设置.我查看了选项设置,但不知道如何打开它们.
There is no advanced properties settings available for the files in my ASP NET 4.0 project in VS2010. I have looked through the options settings and I dont see how to turn them on.
我正在寻找构建操作设置,以便我可以设置为嵌入式资源.
I am looking for the Build Action setting so I can set to Embedded Resource.
仅当项目编译为程序集 DLL 时才可用吗?
Is this only available if the project is compiled to an assembly DLL?
这是 4guysfromrolla 示例的屏幕截图.请注意,他们的示例是一个用户控件.
Here's a screen shot from 4guysfromrolla sample. Note that their sample is a user control.
推荐答案
经过更多研究,我发现文件的构建操作实际上仅在编译为 EXE 或 DLL 的项目(如 Web 控件)中可用.它不适用于 ASP NET 应用程序中的文件.
After some more research I found that a file's Build Action is in fact only available on a project that compiles to an EXE or DLL such as a web control. It is not available for files within an ASP NET application.
这篇关于如何在文件上设置构建操作 - 属性窗口中未显示高级属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!