G
Guest
Trying to use reflection to obtain the 4-part name of a strong named assembly
(assembly, version, culture, publickeytoken) and immediately release the
reference. I’m currently doing the following:
Assembly projectAssembly =
Assembly.ReflectionOnlyLoadFrom(projectAssemblyFullPath);
fourPartName = projectAssembly.FullName;
projectAssembly = null;
The problem is that the reference to the assembly is still being held after
I set it to null which isn’t ideal… this is keeping Visual Studio from
building the project as it can’t overwrite the assembly in the \bin\debug
directory (this is a plugin-like project I’m working on). Looking for any
method to force a release of the assembly or another process to obtain this
4-part name. Ideas?
(assembly, version, culture, publickeytoken) and immediately release the
reference. I’m currently doing the following:
Assembly projectAssembly =
Assembly.ReflectionOnlyLoadFrom(projectAssemblyFullPath);
fourPartName = projectAssembly.FullName;
projectAssembly = null;
The problem is that the reference to the assembly is still being held after
I set it to null which isn’t ideal… this is keeping Visual Studio from
building the project as it can’t overwrite the assembly in the \bin\debug
directory (this is a plugin-like project I’m working on). Looking for any
method to force a release of the assembly or another process to obtain this
4-part name. Ideas?