Showing posts with label Visual Studio. Show all posts
Showing posts with label Visual Studio. Show all posts

Friday, October 8, 2010

Wcf self hosting - also in VS 2010

@YaronNaveh

A while ago I published a Wcf self hosting template project for visual studio 2008.
The same template also works for VS 2010: just put this under

"%My Documents%\Visual Studio 2008\Templates\ProjectTemplates\Visual C#\WCF"

and the new template is under the C# / Wcf node:



Enjoy :)

@YaronNaveh

What's next? get this blog rss updates or register for mail updates!

Wednesday, February 10, 2010

Visual Studio: Adding an existing folder to a project

@YaronNaveh

When I read this in the Nitriq blog I felt they took the words out of my mouth. I have always looked for a way to add an existing folder (with its files) to a VS project. The "manual" way is to create the root folder and then multiple select the files in the "add existing files..." context menu. But this is not practical in case there are multiple nested folders with many files in each.

The Nitriq blog gives a partial solution:


1. Copy the destination folder into the project folder (via windows explorer).
2. Click the "show all files" button.
3. Right click the folder --> "Include In Project".


However this has the disadvantage of not working in a "web site" project but only in a regular one. Amazingly enough I have found the trivial way to do the whole thing:


1. Drag the folder to the solution!




How stupid of me to not see it before... The annoying part is that VS should really have an "add existing folder..." context menu item.

@YaronNaveh

What's next? get this blog rss updates or register for mail updates!