Question About Publishing a Website In Visual Studio 2005

J

Joey

asp.net 2/C#/VS2005

I have a web app that uses a third party control. The control requires
a license file that is located in the root folder of the website. Each
time I publish the website, VS2005 does not recognize the file as one
that should be published, like an aspx or cs file, etc...so it does
not copy it to the web server folder. So each time after publishing I
have to manually copy the license file by using Windows Explorer. I
know that I can create a batch file to do this, but can I "mark" it so
that VS publishes it with the other website files? That would be
ideal.

JP
 
A

Alexey Smirnov

asp.net 2/C#/VS2005

I have a web app that uses a third party control. The control requires
a license file that is located in the root folder of the website. Each
time I publish the website, VS2005 does not recognize the file as one
that should be published, like an aspx or cs file, etc...so it does
not copy it to the web server folder. So each time after publishing I
have to manually copy the license file by using Windows Explorer. I
know that I can create a batch file to do this, but can I "mark" it so
that VS publishes it with the other website files? That would be
ideal.

JP

Is that file included in to the project? (Project - Include in project)
 
J

Joey

Is that file included in to the project? (Project - Include in project)

Yes the file is included. It shows in the VS IDE, and I get an option
to "Exclude From Project" when I right-click on it. However, VS treats
it like the .cs source files when I publish my project - it doesn't
copy them to the web server. So how can I make it treat it like
the .aspx files? That way it will copy it to the web server each time
I publish.

JP
 
A

Alexey Smirnov

Yes the file is included. It shows in the VS IDE, and I get an option
to "Exclude From Project" when I right-click on it. However, VS treats

I'm not very sure if it helps, but when you right clicked, Properties,
you will find a "Copy to Output Directory" option. Let me know if it
makes any effect.
 
J

Joey

I'm not very sure if it helps, but when you right clicked, Properties,
you will find a "Copy to Output Directory" option. Let me know if it
makes any effect.

There is no option for "Copy to output directory".
 

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

Top