Re: How to share code between two different sites?
- From: matt@xxxxxxxxxxxxxx
- Date: 17 Jul 2006 09:49:46 -0700
Neo wrote:
Not all files are same. But some functionality like file logging, file
download code etc is common.
i believe this is simple.
if you have 3 websites that live on different servers, but your
development is all on the same machine.. then you just create three
seperate solutions in VS.NET. each solution has two projects:
1) the unique website
2) a "my common code" project, w/ your shared code
....the common-code project lives on the filesystem outside of *any* of
the websites. ala:
c:\projects\MyCommonCode\
c:\projects\Website1
c:\projects\Website2
c:\projects\Website3
as mentioned, in each solution you include a "Project Reference" to the
MyCommonCode project. you can update the code in this project at any
time from any of the 3 solutions. when you re-build any of the 3
solutions, they will build the latest version of the MyCommonCode
project and automatically copy it to your current solutions' /bin.
that works.
now, if you want it to *automatically* update *all* 3 solutions (w/o
manually re-building each), then you must use the GAC idea as described
by another.
or, you could write some code that monitors the /bin/release folder of
the MyCommonCode project, and when its updated FTP copy it to your
other solutions.
matt
.
- References:
- How to share code between two different sites?
- From: Neo
- Re: How to share code between two different sites?
- From: matt
- Re: How to share code between two different sites?
- From: matt
- Re: How to share code between two different sites?
- From: Neo
- Re: How to share code between two different sites?
- From: Neo
- Re: How to share code between two different sites?
- From: Juan T. Llibre
- Re: How to share code between two different sites?
- From: Neo
- Re: How to share code between two different sites?
- From: Juan T. Llibre
- Re: How to share code between two different sites?
- From: Neo
- Re: How to share code between two different sites?
- From: Juan T. Llibre
- Re: How to share code between two different sites?
- From: Neo
- How to share code between two different sites?
- Prev by Date: Re: RegularExpressionValidator Issues
- Next by Date: Re: Creating Usable Page Templates in ASP.NET
- Previous by thread: Re: How to share code between two different sites?
- Next by thread: Is Viewstate info listed in the VS.NET 2005 debugger
- Index(es):
Relevant Pages
|