Shared Components

S

Simon Harris

Hi All,

Has anyone got any advice about how to share code in an Intranet
environment?

In classic ASP, we had include files with functions, connections etc in - We
now need to do similar in asp.net, sharing class libraries, so they are
available to all applications on our intranet.

Regards,
Simon.
 
K

Kikoz

Right click on you Solution node in Solution Explorer. Select Add/New
Project... In dialog, click Class Library in Templates window, name this new
project, click Browse to save it somewhere on network. This will create a
new proj resulting in a single dll when you build it. Create your classes
there. Build it. Then in any other project, including asp.net, right click
References node, then Add Reference... In dialog, click Projects tab,
doubleclick that new project and OK. Now in C# you simply type "using
Whatever.MyNewInterface;" and use its classes.

Sorry for such details :)
Kikoz.
 
S

Simon Harris

Thanks Kikoz - Would that method mean that newly added code to the DLL would
be available in all the apps with references to it, or would I have to set
the reference again each time it gets updated/changed?

Cheers,
Simon.
 
K

Kikoz

The whole idea of this is to add a reference to some library once and forget
about it. Beware though that if you use SourceSafe and stuff, first, you'd
need to add new proj to source control app, second, you may need to
right-click on that new project and select Get Latest Version everytime
someone else changed its sorce. For example, if something doesn't want to
build itself throwing errors like "There is no such type, blah blah..." then
there is a good chance that you need to get the latest version.

Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top