D
D
I was toying around with assemblies, signing and adding them to the GAC. I
was mistakenly thinking that if I added a console app to the GAC it could be
run from anywhere (anywhere meaning as if the path to the exe was added to
your environment variables).
It then occurred to me that in order to utilize that I would need to write
another app that references the class (from the GAC). However the program
added to the GAC was a simple console hello world type so if I referenced it
from another app it would have to be like
using FirstTest;
Program p = new Program();
p.Main();
which should invoke the console app. I haven't tried it to figure out if it
would even work but then I was questioing whether you would ever need to add
an exe to the GAC.
Am I wrong?
Thanks
was mistakenly thinking that if I added a console app to the GAC it could be
run from anywhere (anywhere meaning as if the path to the exe was added to
your environment variables).
It then occurred to me that in order to utilize that I would need to write
another app that references the class (from the GAC). However the program
added to the GAC was a simple console hello world type so if I referenced it
from another app it would have to be like
using FirstTest;
Program p = new Program();
p.Main();
which should invoke the console app. I haven't tried it to figure out if it
would even work but then I was questioing whether you would ever need to add
an exe to the GAC.
Am I wrong?
Thanks