Hi
I have a class dll which I would ideally like to reside in [Program
files]\[Common Files]\[My Class] folder. My question is; How are my vb.net
apps to reference and use this dll specially since the [Program
files]\[Common Files]\[My Class] folder can reside on different drives
between production and release machines.
Thanks
Regards
stand__sure - 30 Jun 2005 07:55 GMT
the installer should take of placement for you. as for directly
referencing in code (should there be a need), you can reference
relative to your current directory -- I use
Environment.CurrentDirectory for this during the loading of the main
form (there may be issues with using it later, but I have not tested
this). You can also use Reflection to get the Location or CodeBase for
the Assembly (it is my understanding that this can be a bit expensive
memory-wise, which is why I use the other approach. This approach
should be durable though)