Visual Studio 2005 ASP.net publishing of virtual directories

A

Angelo Cook

how do you prevent the publishing of virtual directories in VS 2005.

I have been using VS2003 and developing websites for years. I have been
using virtual directories for images, icons, styles and scripts. Which in
dot net 1.1 and VS2003 when I copied or published my web sites the virtual
directories were ignored. Now I am trying to convert to VS2005 and dot net
2.x and now my development environment now sees the virtual directories and
when I publish to my test site, which has the same virtual directories set
up, it insists on copying the files to actual directories.

I know I am missing somthing here.
 
C

Cowboy \(Gregory A. Beamer\)

Wlecome to the land outside the box.

In ASP.NET 2.0, MS has opted for a non-project website model. When you open
a site, it iterates through the directories and finds everything. The only
possible way I can think of to circumvent this (have not tested the idea) is
to dink with the solution file, as that is where info that used to be in the
project file is now stored (not all information, just the bits that are
absolutely necessary). I am not confident anything WAS left in the solution
file to exclude.

Another option is to purposefully exclude the virtual directory bits (which
is in the solution). The issue here is it renames the files to .exclude.
But, you could go through the discipline of running locally, exclude and
publish. Yes, this would be a pain, but it would work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top