Click here to Skip to main content
Sign Up to vote bad
good
See more: C#4.0VS2010.NET4
Hi guys.
Can anybody advice to me, how to get list of essemblies which loaded after execution some piece of code which reffers to third-party SDK's.
 
The problem lies in next:
I have installed ClearCanvas SDK's. In my project i use some assemblies from this sdk for query and move operation against specific data.
My project references for one assembly from this SDK, as a result , i add this assembly to deploy package.
When this deploy package is deployed on remote PC, i start this application, and when i try to invoke some action which reffer to this sdk, CLR throw an exception, that it cannot find some plugins(assemblies).
 
I won't be able to deploy this sdk on remote machine, by reason of it size.
The main idea is to add assemblies which only needs fro some specific task.
So how can i get a list of assemblies which CLR is loaded after some specific code had been executed ?
Is it possible to get list of assemblies, which CLR is loaded after i had performed debugging action in Visual Studio?
Posted 6 Sep '12 - 21:21
Edited 6 Sep '12 - 21:27


1 solution

If you are using statically bound functionality, then use Reflector to see the references within the DLL you are using and add those files to your deployment.
 
If the component is using late/runtime binding then there is no way to know other than using the application and testing where you get errors and adding the needed assemblies (you can add all the files needed of course).
  Permalink  
Comments
Oleksandr Kulchytskyi - 7 Sep '12 - 3:49
Well actually i'm using static bound functionality, and reffer to one assembly , which in turn use late/rutime binding.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Mahesh Bailwal 353
1 Sergey Alexandrovich Kryukov 339
2 Maciej Los 290
3 CPallini 245
4 Rohan Leuva 175
0 Sergey Alexandrovich Kryukov 9,287
1 OriginalGriff 7,204
2 CPallini 3,923
3 Rohan Leuva 3,211
4 Maciej Los 2,713


Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 7 Sep 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid