我有这个代码将dll注册到我的gac中
Assembly asm = Assembly.LoadFrom(argument);
RegistrationServices regAsm = new RegistrationServices();
bool bResult = regAsm.RegisterAssembly(asm, AssemblyRegistrationFlags.SetCodeBase);
Run Code Online (Sandbox Code Playgroud)
并且工作正常,我对bResult忠诚,但是当我打开GAC窗口时,我希望看到那里的dll,但事实并非如此.谁能解释我为什么?
当我将dll放入GAC窗口时,我在那里看到它.
c# ×1