Multiple Assemblies

.NET obfuscator and automated error reporting

Multiple Assemblies

Postby JohnRedGater » Mon Jun 27, 2011 7:20 pm

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:

  • Application
      Depends on :
        3rd Party Logging Apparatus
  • DataModel
  • Plugin
      Depends on:
        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:
I also want to make sure I'm not including duplicate assemblies in to my final build such as the 3rd party Logging. How would I setup my MsBuild to handle this situation? Do I have to create a separate project file that obfuscates each assembly then perform the merging at the application project?
    Posts: 10
    Joined: Mon Jun 27, 2011 6:53 pm

    Postby james.davies » Wed Jun 29, 2011 6:16 pm

    I think you want two SmartAssembly projects (one for the Application, and another for the Plugin)
    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: ... rtAssembly ... rtAssembly ... rtAssembly) ... 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: ... 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: ... 362558.htm
    James Davies
    Technical Support Engineer
    Red Gate Software
    Posts: 46
    Joined: Tue Apr 19, 2011 1:39 pm

    Return to SmartAssembly 6

    Who is online

    Users browsing this forum: No registered users and 0 guests