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

后端 未结 4 1235
情话喂你
情话喂你 2020-12-10 18:12

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 t

相关标签:
4条回答
  • 2020-12-10 18:18

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

    0 讨论(0)
  • 2020-12-10 18:25

    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.

    0 讨论(0)
  • 2020-12-10 18:29

    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 讨论(0)
  • 2020-12-10 18:39

    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.

    0 讨论(0)
提交回复
热议问题