# Problem generating rslib for a SmartComponent using RobotStudio SDK

**URL:** <https://tech-community.robotics.abb.com/t/problem-generating-rslib-for-a-smartcomponent-using-robotstudio-sdk/10831>\
**Category:** Developer Tools\
**Tags:** visualstudio, robotstudio-sdk, smartcomponent\
**Created:** [August 3, 2022, 6:26pm UTC](https://tech-community.robotics.abb.com/t/problem-generating-rslib-for-a-smartcomponent-using-robotstudio-sdk/10831 "2022-08-03T18:26:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hcostelha](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@hcostelha](https://tech-community.robotics.abb.com/u/hcostelha)\
**Post date:** [August 3, 2022, 6:26pm UTC](https://tech-community.robotics.abb.com/t/problem-generating-rslib-for-a-smartcomponent-using-robotstudio-sdk/10831/1 "2022-08-03T18:26:30Z")

</div>

Hi,

I was having problems generating the [simple example](https://developercenter.robotstudio.com/api/robotstudio/articles/How-To/SmartComponent/Creating-a-SmartComponent.html) using Visual Studio 2022 with RobotStudio 2021.2, giving me the following error  
error MSB3073: “C:\Program Files\ABB\RobotStudio 2021\bin\LibraryCompiler.exe”  
I had to go to the solution properties, Build Events, and change the second post-build command from  
“”$(ProgramFiles)\ABB\RobotStudio 2021\bin\LibraryCompiler.exe" “$(ProjectDir)\SmartComponent.xml”  
to  
“$(ProgramFiles) (x86)\ABB\RobotStudio 2021\bin\LibraryCompiler.exe” “$(ProjectDir)\SmartComponent.xml”

I leave it here in case someone bumps into the same problem.

Best regards,  
Hugo
