By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,969 Members | 1,564 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,969 IT Pros & Developers. It's quick & easy.

Question About Publishing a Website In Visual Studio 2005

P: n/a
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

May 29 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On May 29, 11:13 pm, Joey <joey.pow...@topscene.comwrote:
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)

May 30 '07 #2

P: n/a
On May 30, 2:07 am, Alexey Smirnov <alexey.smir...@gmail.comwrote:
On May 29, 11:13 pm, Joey <joey.pow...@topscene.comwrote:
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)
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

May 30 '07 #3

P: n/a
On May 30, 6:49 pm, Joey <joey.pow...@topscene.comwrote:
>
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.

May 30 '07 #4

P: n/a
On May 30, 3:33 pm, Alexey Smirnov <alexey.smir...@gmail.comwrote:
On May 30, 6:49 pm, Joey <joey.pow...@topscene.comwrote:
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.
There is no option for "Copy to output directory".

May 30 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.