Michael Stephenson

Microsoft BPM/SOA Adventures
posts - 187, comments - 188, trackbacks - 15

My Links

News

View Michael Stephenson's profile on BizTalk Blog Doc View Michael Stephenson's profile on LinkedIn

Archives

Post Categories

Image Galleries

BizTalk

Mates

Creating a new project/solution

Problem

Ok this is one the biggest pains in the butt to me when working with Visual Studio.  Normally on projects ive use a nested folder structure which matches the namespaces within the solution.  The problem is that when you create a new project it will put it in a new folder under the folder where the solution file is or which ever directory you select, and the new folder is always the full name of the project.  In the end you just end up having to move the project file to the place you want it by hand.

Solution

Credit to Stephen Maitland for telling me this one, but here goes....

1. Create a C# project file and then place the project file in the following directory:

c:\Windows\ShellNew

2. Run the following reg snippet:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.csproj\ShellNew]
"FileName"="XXXXX.csproj"

(note: XXXXX is replaced with the name of the project file)

3. Open windows explorer and right click in a folder, select new and you will have an option to create a new project file in that directory.  You can then just add it as an existing item to your solution.

Thoughts

1. I guess the only downside to this is you will have to create manually do the project guid to ensure there are no clashes and also the namespace properties etc.

 

I hate the folder thing so i think ill try this and see how it goes, ill add any updates if it seems good or bad in practice.

Print | posted on Wednesday, November 22, 2006 11:10 PM | Filed Under [ .net 2 ]

Feedback

No comments posted yet.
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 

Powered by: