Re: Copy Web site vs Publish Website vs Web Deployment Project



re:
!> I want to make sure no one can pull up/read/download my vb source code (in .vb files)

The best way to prevent that possibility is to compile your classes
into assemblies and uploading the dlls to the app's bin directory.

No vb source uploaded = no one can pull up/read/download your vb source code in .vb files.

Make sure that the .Net Framework directory(where the vb and/or cs compilers are located)
is in your path; navigate to the dir where your .vb files are, and run the compile command :

vbc /t:library /out:myFile.dll myFile.vb

myFile.dll will be created/compiled in the current directory.

Move the assembly to the /bin directory of your application and fire away.
If you want to have VS.NET use it, reference it in your project.

If you want to use C#, then the command line would be :

csc /t:library /out:myFile.dll myFile.cs

If you need to import .Net classes, include them in your command line:

vbc /t:library /r:system.dll /r:system.web.dll /out:common.dll common.vb
csc /t:library /r:system.data.dll /r:system.web.dll /out:common.dll common.cs




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Cirene" <cirene@xxxxxxxxxxx> wrote in message news:er232COsIHA.4876@xxxxxxxxxxxxxxxxxxxxxxx
When would I use "Copy Web site" over "Publish Website" or visa versa? Why would I use the Web Deployment Project vs
these options?

I want to make sure no one can pull up/read/download my vb source code (in .vb files).

I would prefer easy update of the site (code or aspx.)

Thanks.




.



Relevant Pages

  • Re: C++/TCL Need Solution to Compile Error c2784
    ... There's always the "Platform SDK" from MSDN if you need the window.h stuff, ... Since I'm using the Command Prompt rather than the GUI to compile the ... I then tried to compile your source code and I kept getting the same ...
    (comp.lang.tcl)
  • compile firefox-3.0 source code
    ... I using ubuntu 8.04 and I want to compile Firefox source code. ... operation is deprecated.: command not found ...
    (Ubuntu)
  • compile firefox-3.0 source code
    ... I using ubuntu 8.04 and I want to compile Firefox source code. ... operation is deprecated.: command not found ...
    (Ubuntu)
  • Re: Video editing in Linux?
    ... I didn't say compile the kernel itself, it was my beleif that i had to ... compile the source code TO the kernel for it to become registered. ... Well if they're command line you don't need to install them you just ...
    (alt.linux)
  • Help: Copy Web site vs Publish Website vs Web Deployment Project
    ... would I use the Web Deployment Project vs these options? ... I want to make sure no one can pull up/read/download my vb source code (in ... I would prefer easy update of the site (code or aspx.) ...
    (microsoft.public.dotnet.framework.aspnet)