Error in Building Robotstudio Add-in

vikram6892vikram6892 Weingarten
edited July 2018 in RobotStudio
How to copy the .dll file automatically to the Robotstudio Add-in directory ? I get an error while doing so.

I have tried both of the following commands in the Post Build section.

XCopy /y "$(TargetPath)" "C:\Program Files (x86)\Common Files\ABB Industrial IT\Robotics IT\RobotStudio\Addins\"

XCopy /y "$(TargetPath)" "C:\Program Files\ABB Industrial IT\Robotics IT\RobotStudio 6.07 \Bin\Addins\"



Thanks in advance...

Answers

  • DenisFRDenisFR FRANCE ✭✭
    Hello,
    You may not have right to write in this directory.
    Change your destination directory access right.
    Can you show us your output frame?
    Maybe something wrong in compilation so AddIn3.dll doesn't exist.
  • vikram6892vikram6892 Weingarten
    Hello Dennis,


    I have full access  to read / write / modify in the directory.

    If I have to change the Destination directory, will the class library gets complied ?  If so, to which destination directory, I should change ?

    My output frame looks like this after I try to build the class library.



    Thanks in advance for your inputs.
  • DenisFRDenisFR FRANCE ✭✭
    edited July 2018
    Change your Post Build section by that:
    set ADDINPATH=C:\ProgramData\ABB Industrial IT\Robotics IT\DistributionPackages\
    set MYCOMPANY=mycompany
    if not exist "%ADDINPATH%%MYCOMPANY%.$(ProjectName)-6.07.00\RobotStudio\Add-In" mkdir "%ADDINPATH%%MYCOMPANY%.$(ProjectName)-6.07.00\RobotStudio\Add-In"
    XCopy /y "$(ProjectDir)$(ProjectName).rsaddin" "%ADDINPATH%%MYCOMPANY%.$(ProjectName)-6.07.00\RobotStudio\Add-In"
    Changing mycompany by yours.
    Don't forget to update .rsaddin values too.

    Now your can find your add-in in Add-Ins tab under Add-Ins - General tree.
    Load it and enjoy.


Sign In or Register to comment.