Editing Project files, Resource Editors in VS 2010

Posted by rajbk on ASP.net Weblogs See other posts from ASP.net Weblogs or by rajbk
Published on Sat, 01 May 2010 04:24:20 GMT Indexed on 2010/05/01 4:27 UTC
Read the original article Hit count: 644

Filed under:
|
|

Editing Project Files

Visual Studio 2010 gives you the ability to easily edit the project file associated with your project (.csproj or .vbproj). You might do this to change settings related to how the project is compiled since proj files are MSBuild files.

One would normally close Visual Studio and edit the proj file using a text editor. 
The better way is to first unload the project in Visual Studio by right clicking on the project in the solution explorer and selecting “Unload Project”

image 
The project gets unloaded and is marked “unavailable”
The project file can now be edited by right clicking on the unloaded project.

image
image  
After editing the file, the project can be reloaded.

image

Resource editors in VS 2010

Visual studio also comes with a number of resource editors (see list here).
For example, you could open a file using the Binary editor like so.

Go to File > Open > File..

Select a File and choose the “Open With..” option in the bottom right.

image 
We are given the option to choose an editor.

image 
Note that clicking on the “Add..” in the dialog above allows you to include your favorite editor.
image 
Choosing the “Binary editor” above allows us to edit the file in hex format. In addition, we can also search for hex bytes or ASCII strings using the Find command.
image 

The “Open With..” option is also available from within the solution explorer as shown below:

image

Enjoy!

 

Mr. Incredible: No matter how many times you save the world, it always manages to get back in jeopardy again. Sometimes I just want it to stay saved! You know, for a little bit? I feel like the maid; I just cleaned up this mess! Can we keep it clean for... for ten minutes!

© ASP.net Weblogs or respective owner

Related posts about .NET

Related posts about ASP.NET