views:

182

answers:

2

In my line of work I'm often retrieving very specific versions of crusty ASP.NET web apps from their long-forgotten repositories, making minor changes and then recompiling.

A major annoyance in this process is having to create a virtual directory for every web project that I need to recompile. I don't have any problems with the process, but it's tedious and still a very manual process on .NET 1 projects.

Is there a fairly simple way to recompile the binaries of the csproj without setting up a new virtual directory?

Edit: I don't mind using command line tools, or external solutions, as long as they're fairly simple and straightforward.

+1  A: 

I'm not sure there's any other way unless you can convert the project to vs 2005.

Jeremy
out of interest, how would you do it if it was VS 2005?Or do you mean that VS2005 offers to create a virtual directory automatically?That in itself doesn't completely solve the problem when you have multiple projects with different codebases that all want the same virtual directory name.
Coxy
I think you are talking about converting a "web site" to a "web application"? check out this link for some tips. http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx
YetAnotherDeveloper
2005 allows you to use either the web site or web application project, and it has it's own built in web server so you never have to touch IIS. Additionally, it has a publish feature which will compile your web site/app project to a target directory so it is all ready for deployment. Much simpler than in the past.
Jeremy
+1  A: 

I ran into a similar issue when i was dealing with a web project that i needed to manage a few branches that all wanted the same virtual directory. I wrote this small app that does some switching of the virtual for you automagically.

I have added on to the app to make it more functional (supporting more than just one project at once)... and i'm sorry to say i have never update the code on the blog. This might just serve as a good starting place for you to manage your virtual directories.

I will try to get the latest code up on the blog soon and i will update this post when i do.

but in the meantime check out the source here

ps. i know this version of the code needs to be cleaned up this version was just a proof of concept.

YetAnotherDeveloper
thanks for the utlity, it's probably the next best thing for my problem. Cheers!
Coxy
sorry its not a "fix" but hope it helps! good luck.
YetAnotherDeveloper