Merging/Embedding not referenced assembly

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

Merging/Embedding not referenced assembly

Postby pokrec » Sat Aug 10, 2013 1:30 pm

hi
I am having an app that is using loosely coupled components that are stored in different assemblies.

A.exe depends on base.dll.
C.dll depends on base.dll too.
A.exe is dynamically loading C.dll to use it based on contract from base.dll.
Can smart assembly merge or embedd the C.dll into A.exe ?

Please disregard problem of A.exe detecting merged C.dll, I am serching for help how fo force SA to merge those.
BR
Przemek
pokrec
 
Posts: 3
Joined: Fri Nov 18, 2011 11:26 am

Postby Chris.Allen » Mon Aug 12, 2013 12:41 pm

Best thing is to try and see- SA will always *try* to merge an assembly and it may succeed but that doesn't mean you won't get runtime errors which are hard to predict. By the sound of it- because you are dynamically loading it- it won't work so you may need to modify the code to make it work or not bother merging. As I say- too hard to predict so try it and see.
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Re:

Postby pokrec » Mon Aug 12, 2013 8:01 pm

I saw before starting new topic. It does not allow to do so. On the list you get only the referenced assemblies. If you add this assembly manually in the saproj then the button build is disabled.
Can smart assembly merge or embedd the un-referenced assembly?
pokrec
 
Posts: 3
Joined: Fri Nov 18, 2011 11:26 am

I agree

Postby eric-914 » Thu Oct 24, 2013 4:11 pm

There needs to be an option to manually add additional dependencies to the S/A project.
eric-914
 
Posts: 28
Joined: Fri Nov 30, 2012 5:51 pm

I agree

Postby eric-914 » Thu Oct 24, 2013 4:11 pm

There needs to be an option to manually add additional dependencies to the S/A project.
eric-914
 
Posts: 28
Joined: Fri Nov 30, 2012 5:51 pm


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 2 guests