Multiple Assemblies
JohnRedGater
Posts: 17
I’m using SmartAssembly Version 6.1 and I’m trying to automate my build process using msbuild. So far, I’m confused as to how the whole thing works given my special case. My application isn’t one giant assembly, but it consists of a solution file with multiple project files:
[*] DataModel[/*]
[*] Plugin
[*] PluginInterface
[*] Support[/*]
I want to obfuscate every assembly then merge or embed the components together such that at the end of the build there should be two files:
- Application
-
Depends on :
-
DataModel
PluginsInterface
Support
3rd Party Logging Apparatus
[*] DataModel[/*]
[*] Plugin
-
Depends on:
-
PluginInterface
3rd Party Logging Apparatus
[*] PluginInterface
-
Depends on:
-
3rd Party Logging Apparatus
[*] Support[/*]
I want to obfuscate every assembly then merge or embed the components together such that at the end of the build there should be two files:
-
Application
Plugin
Comments
For each project SmartAssembly will scan for dependencies and you can then decide if you want to merge or embed each dependency. Merging offers the strongest protection . Please see these articles:
http://www.red-gate.com/supportcenter/C ... rtAssembly
http://www.red-gate.com/supportcenter/C ... rtAssembly
http://www.red-gate.com/supportcenter/C ... rtAssembly)
http://www.red-gate.com/supportcenter/C ... rtAssembly
I would recommend a 2 stage approach for creating your build process
1) Get your build process working manually and use the SmartAssembly application to create your project settings
If you have problems after building, please read this article:
http://www.red-gate.com/supportcenter/C ... rtAssembly
Once you are have created your two *.saproj files and you are happy with the results then you can move to automating using msbuild.
2) Automate using msbuild
Here is an article describing using SmartAssembly with msbuild:
http://www.red-gate.com/supportcenter/C ... 362558.htm
James Davies
Technical Support Engineer
Red Gate Software