| Author |
Message |
JohnRedGater
Joined: 27 Jun 2011 Posts: 10
|
Posted: Fri Nov 16, 2012 6:39 pm Post subject: How to detect which Assemblies have been Merged |
|
|
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 |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6341 Location: Red Gate Software
|
Posted: Mon Nov 19, 2012 11:47 am Post subject: |
|
|
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. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6341 Location: Red Gate Software
|
|
| Back to top |
|
 |
|
|
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