Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Asp.Net Programming

Question About Publishing a Website In Visual Studio 2005


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

On May 29, 11:13 pm, Joey <joey.pow@topscene.com> wrote:

> 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)

-----------------------------------------------Reply-----------------------------------------------
On May 30, 2:07 am, Alexey Smirnov <alexey.smir@gmail.com> wrote:

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

-----------------------------------------------Reply-----------------------------------------------

On May 30, 6:49 pm, Joey <joey.pow@topscene.com> wrote:

> 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.

-----------------------------------------------Reply-----------------------------------------------
On May 30, 3:33 pm, Alexey Smirnov <alexey.smir@gmail.com> wrote:

> On May 30, 6:49 pm, Joey <joey.pow@topscene.com> wrote:

> > 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".
Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc