Redgate SmartAssembly

craig.white's Avatar


12 Mar, 2015 10:52 AM


I am using SmartAssembly for obfuscating my project. I have added an after build task to run the saproj which creates the obfuscated exe.

This works fine locally as I have the software installed. However, I get an error when I push this to Appveyor "The "SmartAssembly.MSBuild.Tasks.Build" task could not be loaded..."

I am already running an install script to get custom nuget packages, can something similar be done for the SmartAssembly software?


  1. Support Staff 1 Posted by Feodor Fitsner on 12 Mar, 2015 06:20 PM

    Feodor Fitsner's Avatar

    Hi Craig,

    There could be various options. If software installer supports "silent" installation mode then you add code to build script downloading installation package and installing it before build. If software can be "XCOPY" deployed then you do a zip with all required assemblies, target files and other files and then unpack this zip before build and GAC required assemblies. Another question is software license and the way it could be deployed - whether it's calling command line with a key, putting .lic file, adding key to the registry or something else - this should be added to the build script too.

  2. 2 Posted by craig.white on 13 Mar, 2015 11:17 AM

    craig.white's Avatar


    Thanks for that, I was able to sort it out by adding another install script to the environment.
    For anyone else using Redgate Smart Assembly I included the .exe that you download from their website and including it in the solution.
    The script i am using is:
    cmd.exe /c .\SmartAssembly.exe /IAgreeToTheEULA RG LICENSE=YourLicenseNumberHere

  3. Support Staff 3 Posted by Feodor Fitsner on 13 Mar, 2015 11:18 AM

    Feodor Fitsner's Avatar

    Great, thanks for the update and installation command sample!

  4. 4 Posted by craig.white on 13 Mar, 2015 04:20 PM

    craig.white's Avatar

    That sample won't work properly, I am working with Redgate now to resolve the issue. When I have a working example I will put that up.

  5. 5 Posted by craig.white on 17 Mar, 2015 11:14 AM

    craig.white's Avatar


    I have this working properly now.
    I have attached the instructions given to me by redgate. There are a few errors in it but it should put people on the right path.


  6. 6 Posted by bniemyjski on 04 Aug, 2015 04:36 PM

    bniemyjski's Avatar

    @Craig.white. How did you specify the license? When I set RG_License=xxx-xxx it doesn't pick it up.

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:58 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac