Re: How to share code between two different sites?



I just checked and found
1. You can't add child project to website.
2. Whenever you add reference to a dll, it gets copied in /bin folder
so you are always using duplicate not the orignal dll.

So effecitively, when we create update dll we must add it manually to
all websites. That sounds like nightmare. Is there really no solution
from microsoft to update dll automatically???

Web services sounds real cool solution but why won't that be slower if
network between servicing site and using site is slower?

-Neo

Neo wrote:
so what you mean, is child class project can refer to files outsite the
website folder? Isn't this flaw in secuirty? Normal aspx pages must
stay in webfolder where as class files can be outsite? I was under the
imporession all class files must be in app_dir folder.
-neo

matt@xxxxxxxxxxxxxx wrote:
Harolds wrote:
If you add the "class libraries" project to each web site solution you ["dont" ? -matt] have
to worry about the redistribution of the dll, and you can add/update the code
in the class libraries from either web site solution.

ah.. so youre saying instead of just coping the black-box .DLL to each
website, have each website's solution include the class library as a
child project.

yes that could be a better way to do it -- since each website points to
the same class project on the file system, it will build & include the
latest into that particular website.


matt

.



Relevant Pages

  • Automatically copying VS output to an IIS website folder
    ... I have a code library that is output by VS as a .dll file that I would like ... to copy to an IIS website folder. ... Currently the target web folder is on my development machine ... IIS shows the websites in a tree / folder view, ...
    (microsoft.public.vsnet.general)
  • Re: How to share code between two different sites?
    ... application if you have common code for all? ... Three servers are given since all they are for different clients. ... comfortable adding dll to each site manually ) ... You can't add child project to website. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: VS.NET Q: where to put common DLLs in a multi project solution, web vs. web application Q
    ... all it does is make an additional project file for the code behind files (which are built into a dll, the ide then has hide the source files from the aspnet compiler). ... all dlls not in the gac or the framework folder must be copied to the bin folder. ... vs will this copy for you if the web site or web application project has a reference to the dll or class project. ... msbuild supports website solutions, and deployment projects, so you can do commandline builds of the site and have a deployment folder built. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to share code between two different sites?
    ... Each website has customize code as well as re-used common code. ... Three servers are given since all they are for different clients. ... comfortable adding dll to each site manually ) ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to share code between two different sites?
    ... servers. ... automatic update of shared code. ... One dll...one dll update when needed...all applications are served. ... You can't add child project to website. ...
    (microsoft.public.dotnet.framework.aspnet)

Loading