Hello, my company is just switching from PHP to .Net. As part of this what
we have built our own "AIP", basically just a set of libraries to abstract
common business logic. What we would like is for all of our ASP.Net
applications (we are using visual stuido 2005 with ASP.Net 2.0) to simply
reference our API directory rather than copy referenced libraries to the
local bin directory. So far I'm not seeing how this can be done with Visual
Studio 2005. If any one has an idea that would be great, thanks. 5 1309
Well, one solution is to place the business libraries in the Global Assembly
Cache (GAC), which allows you to reference them without having them placed
in the bin directory. This is where all the native .NET libraries are like
System.Web. You can learn more from http://msdn2.microsoft.com/en-us/library/yf1d93sz.aspx
One downside of using the GAC is that you might not always have access to
installing into the GAC on certain machines (say you are using a 3rd party
hoster).
My own prefered way of developing is to reference projects, not assemblies.
That is, in your Dummy1 website project, the solution would contain the
complete projects for all libraries.
Karl
-- http://www.openmymind.net/
"Carlo Razzeto" <cr******@hotmail.com> wrote in message
news:u%****************@TK2MSFTNGP14.phx.gbl... Hello, my company is just switching from PHP to .Net. As part of this what we have built our own "AIP", basically just a set of libraries to abstract common business logic. What we would like is for all of our ASP.Net applications (we are using visual stuido 2005 with ASP.Net 2.0) to simply reference our API directory rather than copy referenced libraries to the local bin directory. So far I'm not seeing how this can be done with Visual Studio 2005. If any one has an idea that would be great, thanks.
We actually did consider this approach, however we found that when we added
librareis to the GAC we could not add them to our visual studio references,
perhaps we were doing this incorrectly.
There is one downside to using the GAC however, (apart from 3rd party
machines which is not an issue for us), the GAC will maintain all versions
of a library which has been added to it (we never did figuer out how to
remove libraries from the GAC). We would actually like for all of our
websystems to be on the same page w/o a recompile.
Hmmm, we do however strickly enforce version numbers on our dlls however,
currently all dlls must be revision 1.0.0.0. So what would happen if we
tried to add an updated library with the same name/version as a library
which currently exists in the GAC, would the update be allowed? If so would
it mearly overwrite the older library?
"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:ut**************@TK2MSFTNGP11.phx.gbl... Well, one solution is to place the business libraries in the Global Assembly Cache (GAC), which allows you to reference them without having them placed in the bin directory. This is where all the native .NET libraries are like System.Web. You can learn more from http://msdn2.microsoft.com/en-us/library/yf1d93sz.aspx
One downside of using the GAC is that you might not always have access to installing into the GAC on certain machines (say you are using a 3rd party hoster).
My own prefered way of developing is to reference projects, not assemblies. That is, in your Dummy1 website project, the solution would contain the complete projects for all libraries.
Karl -- http://www.openmymind.net/ "Carlo Razzeto" <cr******@hotmail.com> wrote in message news:u%****************@TK2MSFTNGP14.phx.gbl... Hello, my company is just switching from PHP to .Net. As part of this what we have built our own "AIP", basically just a set of libraries to abstract common business logic. What we would like is for all of our ASP.Net applications (we are using visual stuido 2005 with ASP.Net 2.0) to simply reference our API directory rather than copy referenced libraries to the local bin directory. So far I'm not seeing how this can be done with Visual Studio 2005. If any one has an idea that would be great, thanks.
Are you looking for Website -> Add Reference from the menu bar?
"Carlo Razzeto" wrote: Hello, my company is just switching from PHP to .Net. As part of this what we have built our own "AIP", basically just a set of libraries to abstract common business logic. What we would like is for all of our ASP.Net applications (we are using visual stuido 2005 with ASP.Net 2.0) to simply reference our API directory rather than copy referenced libraries to the local bin directory. So far I'm not seeing how this can be done with Visual Studio 2005. If any one has an idea that would be great, thanks.
When you add an assembly into GAC, you need to keep
another copy elsewhere for compile-time referencing.
The same thing is done with Microsoft assemblies, which
are in GAC, but also in the WINNT\Microsoft.NET folder.
"Carlo Razzeto" <cr******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl... We actually did consider this approach, however we found that when we
added librareis to the GAC we could not add them to our visual studio
references, perhaps we were doing this incorrectly.
There is one downside to using the GAC however, (apart from 3rd party machines which is not an issue for us), the GAC will maintain all versions of a library which has been added to it (we never did figuer out how to remove libraries from the GAC). We would actually like for all of our websystems to be on the same page w/o a recompile.
Hmmm, we do however strickly enforce version numbers on our dlls however, currently all dlls must be revision 1.0.0.0. So what would happen if we tried to add an updated library with the same name/version as a library which currently exists in the GAC, would the update be allowed? If so
would it mearly overwrite the older library?
"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> wrote in message news:ut**************@TK2MSFTNGP11.phx.gbl... Well, one solution is to place the business libraries in the Global Assembly Cache (GAC), which allows you to reference them without having them placed in the bin directory. This is where all the native .NET libraries are like System.Web. You can learn more from http://msdn2.microsoft.com/en-us/library/yf1d93sz.aspx
One downside of using the GAC is that you might not always have access
to installing into the GAC on certain machines (say you are using a 3rd
party hoster).
My own prefered way of developing is to reference projects, not assemblies. That is, in your Dummy1 website project, the solution would contain the complete projects for all libraries.
Karl -- http://www.openmymind.net/ "Carlo Razzeto" <cr******@hotmail.com> wrote in message news:u%****************@TK2MSFTNGP14.phx.gbl... Hello, my company is just switching from PHP to .Net. As part of this what we have built our own "AIP", basically just a set of libraries to abstract common business logic. What we would like is for all of our ASP.Net applications (we are using visual stuido 2005 with ASP.Net 2.0) to simply reference our API directory rather than copy referenced libraries to the local bin directory. So far I'm not seeing how this
can be done with Visual Studio 2005. If any one has an idea that would be great, thanks.
I believe different versions are kept in the GAC, so you're code would
always reference the same version (no automatic update, which is both good
and bad).
Karl
-- http://www.openmymind.net/
"Carlo Razzeto" <cr******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl... We actually did consider this approach, however we found that when we added librareis to the GAC we could not add them to our visual studio references, perhaps we were doing this incorrectly.
There is one downside to using the GAC however, (apart from 3rd party machines which is not an issue for us), the GAC will maintain all versions of a library which has been added to it (we never did figuer out how to remove libraries from the GAC). We would actually like for all of our websystems to be on the same page w/o a recompile.
Hmmm, we do however strickly enforce version numbers on our dlls however, currently all dlls must be revision 1.0.0.0. So what would happen if we tried to add an updated library with the same name/version as a library which currently exists in the GAC, would the update be allowed? If so would it mearly overwrite the older library?
"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> wrote in message news:ut**************@TK2MSFTNGP11.phx.gbl... Well, one solution is to place the business libraries in the Global Assembly Cache (GAC), which allows you to reference them without having them placed in the bin directory. This is where all the native .NET libraries are like System.Web. You can learn more from http://msdn2.microsoft.com/en-us/library/yf1d93sz.aspx
One downside of using the GAC is that you might not always have access to installing into the GAC on certain machines (say you are using a 3rd party hoster).
My own prefered way of developing is to reference projects, not assemblies. That is, in your Dummy1 website project, the solution would contain the complete projects for all libraries.
Karl -- http://www.openmymind.net/ "Carlo Razzeto" <cr******@hotmail.com> wrote in message news:u%****************@TK2MSFTNGP14.phx.gbl... Hello, my company is just switching from PHP to .Net. As part of this what we have built our own "AIP", basically just a set of libraries to abstract common business logic. What we would like is for all of our ASP.Net applications (we are using visual stuido 2005 with ASP.Net 2.0) to simply reference our API directory rather than copy referenced libraries to the local bin directory. So far I'm not seeing how this can be done with Visual Studio 2005. If any one has an idea that would be great, thanks.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ed |
last post by:
Hello All,
I posted earlier about a problem I was having with editing
or pasting/deleting files in the "Home Directory" of my
web server. I just noticed that the "Home Directory"
option in the...
|
by: Dave Johnston |
last post by:
Hi,
I'm currently trying to create a wrapper that uses C functions but
behaves like ifstream (from fstream.h) - this is because the platform
I'm using (WinCE) doesn't support streams and this is...
|
by: James Owens |
last post by:
I'm a relative newbie, interested in storing the information from several
server directories and subdirectories in XML so that I can present it
selectively using XSL (all files updated today or...
|
by: Elmo Watson |
last post by:
Is there a way, with the System.IO class, to do a recursive list of a
directory structure?
For instance, in DirectoryInfo, you have GetDirectories and GetFiles ....
In Directory, you have...
|
by: Bas Hendriks |
last post by:
Has anyone any idea how asp.net find it's files back after compiling them to
the temporary asp.net directory?
I found on numerous webpages that the directorynames are chosen random but
cannot find...
|
by: dave |
last post by:
I really have 2 questions regarding the following xml snippet. The xml is a
directory representation.
<?xml version="1.0" standalone="yes"?>
<FileSystem>
<Row>
<ID>1</ID>
<Name>Root</Name>...
|
by: theWizard1 |
last post by:
Using Asp.NET 1.1, and C#.
I have a directory for the website, and a directory under it named Secure.
I have a web.config in each of the above directories. The web.config in the
Secure...
|
by: Peter Oliphant |
last post by:
I have written a program using MS VS VC++ 2005 Express, /cli pure. Upon
compiling it it works fine in the GUI development environment. It also works
fine as a Debug stand-alone. ut I had an odd...
|
by: Hongyu |
last post by:
Dear all:
I am trying to write to a file with full directory name and file name
specified (./outdir/mytestout.txt where . is the current directory)
in
C programming language and under Unix, but...
|
by: falconsx23 |
last post by:
I am trying to write a code for a Phone Directory program. This program is suppose to allow the user to enter a name or directory and then program can either add, save or even delete an entry. Also...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |