Editing Project files, Resource Editors in VS 2010

Editing Project Files

Visual Studio 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. The ability to edit project files has been available in previous versions of Visual studio and is not a new feature.

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!

No Comments