Question About Publishing a Website In Visual Studio 2005

  • Thread starter Thread starter Joey
  • Start date Start date
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
 
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)
 
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
 
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.
 
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".
 
Back
Top