Shared Assembly

  • Thread starter Thread starter ColonL
  • Start date Start date
C

ColonL

Guest
Hello,

I've recently started learning about Assemblies and Class Libraries, I've Practiced Private Assemblies and successfully executed them.I am now trying to install Shared Assemblies.The Procedure which i followed is -


1) created a snk file of my class library -


pviit.png


2) Running Command Prompt as Administrator and tried this -


2pr8fus.png

c2hQMo
c2hQMo


3)As it says gacutil is not recognized as internal or external command,I've copied gacutil.exe and gacutil application from C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin to C:\Users\Lalith\Documents\Visual Studio 2017\Projects\C# for Life\Part - 3\2_CarLibrary\bin\Debug and tried this -


fn4to9.png



16itn52.png




Now, the error message is "Failure adding Assembly to the Cache: This assembly is built by the runtime newer than the currently loaded runtime and cannot be loaded."



Accepting the fact that i'm pretty new to installing shared assemblies to C:\Windows\Microsoft.NET\assembly\GAC_MSIL,is that how it's done? if not, Please Kindly help me.


ColonL

Continue reading...
 
Back
Top