views:

20

answers:

1

Hi there:

sorry for possibly a very stupid question.
I have one of those Visual studio Web Sites ( ie not a web application) , is there any way I can automate the creation of the IIS Web Application that points to the web site within Visual Studio ( ie then when developers open the solution, the IIS site will be set up automagically? Sorry, just not famiiar with the Web Site side of things Thanks

A: 

AFAIK It's not someting Visual Studio will do out of the box. What you could do is create a batch file that creates the virtual directory then opens the solution. Store it in source control and your developers will be able to run it instead of opening the solution directly.

There are a few options for creating an IIS virtual directory automatically - see this and this.

Also - if you are using VS2005 or above you could change you application to use the development web server instead of IIS and then you won't need to mess around with virtual directories at all. Select 'Use default Web server' on the 'Start Options' section of the projects property pages.

Martynnw