Click here to Skip to main content
11,484,528 members (57,630 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C#4.0 VS2010 .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 22:21pm
Edited 6-Sep-12 22:27pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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).
Oleksandr Kulchytskyi at 7-Sep-12 3:49am
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
0 Maciej Los 190
1 Sergey Alexandrovich Kryukov 170
2 Raje_ 155
3 OriginalGriff 147
4 Mehdi Gholam 120
0 Sergey Alexandrovich Kryukov 8,484
1 OriginalGriff 7,948
2 Sascha Lefèvre 3,199
3 Maciej Los 2,681
4 Richard Deeming 2,370

Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 7 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100