Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Load third assembly with its referenced assemblies dynamically in Visual Studio 2010 Add-in

$
0
0

I am creating a visual studio add-in.

In plug-in i am loading third assembly and then iterate its types, properties, etc.

I am loading assembly using

Assembly.Load(File.ReadAllBytes(assemblyPath));

Now the problem is if i run the plug-in in debug mode then third assembly get locked and i am unable to edit that. So i want to load assembly in such a way that third assembly couln't lock.

For that i have tried to create new AppDomain and load that third assembly into it. But in that case it will give error like "Could not load file of assembly or its dependencies". Third assembly has refernece to other dlls also. I tried to solve this error but no success.

So if someone could help me i m very thankful to him/her.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>