Question

I had a file system only web project solution. I needed to convert it to use IIS. So, I mapped a site in IIS to the path where the solution existed. In visual Studio I opened the solution from local IIS Site, bam, everything is great.

Except, now, when I publish the solution (to deploy to another webserver) it makes full copies of the virtual directories.

I do not need these as physical copies, obviously the point of a virtual directory is to point to an already existing path somewhere.

Was it helpful?

Solution

If in IIS you click on the virtual Directory and click convert to application.

Visual Studio will no longer build or publish that virtuqal directory (now applciation).

You do not need to convert your web site project to a web application project, or go through anything more complicated.

Of note: I was having trouble with the CFIDE virtual directory, as this site is also using coldfusion for some other pre-built parts.

Converting CFIDE from a virtual directory to an application has had no affect on Coldfusion, nor any files inside the native CFIDE directory.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top