Re: How to share code between two different sites?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




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

.



Relevant Pages

  • Is politics soon to become irrelevant?
    ... subscribers to the fantasy of Common Sense at heart. ... Teleology is the bete noir of conventional science today. ... in our everyday lives and in all our scientific endeavors. ... The teleological process is posited to hold ...
    (talk.politics.libertarian)
  • Re: No Country for Old Men
    ... These precepts are just common sense. ... do not see all this crime and depravity you seem to be surrounded with. ... lives, fulfilled, mostly contented lives touched only peripherally touched ...
    (rec.arts.mystery)
  • Re: No Country for Old Men
    ... These precepts are just common sense. ... hardworking lives, taking care of their kids etc. Christians, Jews, ... do not see all this crime and depravity you seem to be surrounded with. ...
    (rec.arts.mystery)
  • Re: Editing software
    ... would be a common thread detected in multiple responses. ... One of you, and I apologize for not remembering who, said my banner ... websites for potential clients. ...
    (comp.infosystems.www.authoring.html)
  • Re: No Country for Old Men
    ... These precepts are just common sense. ... hardworking lives, taking care of their kids etc. Christians, Jews, Muslims, ... do not see all this crime and depravity you seem to be surrounded with. ...
    (rec.arts.mystery)