R
richard d
Well - at least I hope it is
Having spent some time developing my c# application, using Visual
Studio 2005, I would now like to start re-factoring some of my code
into a class library so that I can use it in other applications I will
want to write and distribute (by which, BTW, I mean sell to a wide
audience).
Either I'm looking in the wrong book / help topic / whatever, or this
doesn't seem to be as easy as I would have liked.
I understand that I want to build a DLL, and that Visual Studio lets
me do that easily enough. I'm not sure how easy it will be to keep
both library and current application open at the same time so that I
can migrate code across - so I guess that's my first question.
Ideally, then, I should have some sort of distribution system for my
applications set up so that an app only uses the latest version of the
dll. In other words, if I distribute the DLL with app1 and app2, and
app2 has a more recent version of the DLL than app1, but app1 is
installed after app2, then the more recent DLL will not be over-
written. Is that when I need to stick the DLL in the GAC and start
looking at versioning?
Then there's the business of public/private key encoding, which
appears to me to be performed by a utility which presumably is getting
access to my company name from my PC? I mean, how does this tool (sn)
guarantee uniqeness? And should I bother with it.
Cheers
Richard
Having spent some time developing my c# application, using Visual
Studio 2005, I would now like to start re-factoring some of my code
into a class library so that I can use it in other applications I will
want to write and distribute (by which, BTW, I mean sell to a wide
audience).
Either I'm looking in the wrong book / help topic / whatever, or this
doesn't seem to be as easy as I would have liked.
I understand that I want to build a DLL, and that Visual Studio lets
me do that easily enough. I'm not sure how easy it will be to keep
both library and current application open at the same time so that I
can migrate code across - so I guess that's my first question.
Ideally, then, I should have some sort of distribution system for my
applications set up so that an app only uses the latest version of the
dll. In other words, if I distribute the DLL with app1 and app2, and
app2 has a more recent version of the DLL than app1, but app1 is
installed after app2, then the more recent DLL will not be over-
written. Is that when I need to stick the DLL in the GAC and start
looking at versioning?
Then there's the business of public/private key encoding, which
appears to me to be performed by a utility which presumably is getting
access to my company name from my PC? I mean, how does this tool (sn)
guarantee uniqeness? And should I bother with it.
Cheers
Richard