RobotStudio event

Multiple DLLs for SmartComponent

MichalZatopek
edited January 2016 in Developer Tools
Hello,

I have a solution with multiple projects so build creates also multiple DLLs. Is it somehow possible to tell LibraryCompiler of RobotStudio about it? Because these DLLs should be a part of the created .rslib file otherwise this file will not be able to load in RobotStudio.

If it is not possible, do you have any other idea how to solve this situation?

Thank you for your help.

Comments

  • Embedding additional assemblies would be a very useful feature.

    As a workaround i am using the 
    AppDomain.CurrentDomain.AssemblyResolve += OnAssemblyResolve;
    event in the CodeBehind class. Put the dependent assemblies into one of the RS Addin folder 
    %COMMONPROGRAMFILES(x86)%\ABB Industrial IT\Robotics IT\RobotStudio\Addins
    and in the OnAssemblyResolve go through the possible RS Addin directories and check for you dependent assembly;
    AppConfiguration.AddinDirectories 
    (from the GUISupport.dll assembly).

    Regards.
  • Hello Michal.

    You can add those DLL files to the directory where robot studio has all its binary files (Bin).
    In my case, running Robotstudio 6.02 on Windows 7 64bit, the directory would be:

    C:\Program Files (x86)\ABB Industrial IT\Robotics IT\RobotStudio 6.02\Bin

    I didn't have to modify the xml files for the library compiler in any way, but my guess is that you could also do so in order to solve the problem in a different way.
    Hopefully you can solve your problem by just adding the binary files in the directory.