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.