Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to access 'Build Action' property for .cs files

enter image description herei got a problem with my site with my app_code files and a lot of question ive read people say you need to change the proprties of the .cs files to Build Action.

by right clicking the .cs files and press proprties.

but... when i right clicking the files i cant see any option called proprties so i press F4 and it open a proprties window and i just click on the .cs file and still cant see any option i can change somthing to Build Action.

any idea why i cant see this options?

EDIT: my problem is that when i get in the file proprties i have only 2 options... thay are called: 1.Full Name 2.Full Path

EDIT2: here what i see in visual studio 2010 when i try access the protrtie menu/window http://img338.imageshack.us/img338/2359/blac.png

like image 247
samy Avatar asked Jan 27 '26 11:01

samy


1 Answers

As Microsoft points out in the article "Web Application Projects versus Web Site Projects":

Web application projects use Visual Studio project files (.csproj or .vbproj) to keep track of information about the project. Among other tasks, this makes it possible to specify which files are included in or excluded from the project, and therefore which files are compiled during a build.


An answer to a similiar question at CodeProject's forums reveals a hint. Abstract:

[...] Looks like you are working on a web application that is actually a Website as per Visual Studio. You would need to create a new Web Application and probably copy over the source files there. [...]

http://www.codeproject.com/Questions/173637/Setting-Build-Action-for-Files-in-App_Data

like image 114
sshow Avatar answered Jan 29 '26 05:01

sshow



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!