开发者

How to set Build Action on a file - Advanced Properties Not Displayed in properties window

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.

Is this only available if the project is compiled to an assembly DLL?

How to set Build Action on a file - Advanced Properties Not Displayed in properties window

开发者_JAVA技巧

Here's a screen shot from 4guysfromrolla sample. Note that their sample is a user control.


The response marked as the answer is not correct. These properties are available for ASP.NET applications, but only if the project type is a web application.

Files on websites, in contrast, do not have these properties. The reason is that the Build Action, for example, is stored in the project file. Since websites lack project files, the Build Action cannot be set.


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.


The screenshot is of the Properties Window. The selected item is in the Solution Explorer window.


Simply go to properties, select a property from properties you want to build, click on that, a window will open. Choose the desire file from your PC and Add there. Now you can use the file in your project.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜