Red Gate forums :: View topic - How to detect which Assemblies have been Merged
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

How to detect which Assemblies have been Merged

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
JohnRedGater



Joined: 27 Jun 2011
Posts: 10

PostPosted: Fri Nov 16, 2012 6:39 pm    Post subject: How to detect which Assemblies have been Merged Reply with quote

I am trying to integrate SmartAssembly into my build process. Here's what my build process looks like right now:

1. Build all projects and copy their assemblies to a build folder

2. Use Smart Assembly to merge the assemblies in the build folder into a single assembly. Some of the assemblies can't be merged.

3. Copy only merged assemblies and the ones that couldn't be merged into the Installer folder.

4. Build installer from files in the Installer Folder.

This works fine, but I wish I could have a bit more automation. Is there a way to tell MSBuild to automatically detect the assemblies specified in step 3? Alternatively, can SmartAssembly automatically delete assemblies that have been merged to prevent them from being copied?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6646

PostPosted: Mon Nov 19, 2012 11:47 am    Post subject: Reply with quote

That's an interesting idea. I suppose what you would need to do would be to have SmartAssembly build to a different folder, then have some program that can use Reflection get the external references out of the assembly that SmartAssembly merges using Reflection and copy that list of assemblies from the original bin folder to the SmartAssembly output folder.

That would ensure that only the merged assembly and any assemblies that could not be merged are the only ones in the folder.
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6646

PostPosted: Mon Nov 19, 2012 11:52 am    Post subject: Reply with quote

Looks like you could actually get a list of dependnecies using PowerShell...
http://www.leporelo.eu/blog.aspx?id=how-to-find-wrong-assembly-dependencies-via-powershell
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group