# No .rslib file generated

**URL:** <https://tech-community.robotics.abb.com/t/no-rslib-file-generated/9775>\
**Category:** Developer Tools\
**Tags:** rslib, visualstudio, robotstudio-sdk, smartcomponent\
**Created:** [October 29, 2020, 8:14am UTC](https://tech-community.robotics.abb.com/t/no-rslib-file-generated/9775 "2020-10-29T08:14:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gustaffson](https://avatars.discourse-cdn.com/v4/letter/g/71e660/32.png) [@Gustaffson](https://tech-community.robotics.abb.com/u/Gustaffson)\
**Post date:** [October 29, 2020, 8:14am UTC](https://tech-community.robotics.abb.com/t/no-rslib-file-generated/9775/1 "2020-10-29T08:14:43Z")

</div>

Hi Everyone,

I am following the how to create a smart component guide (RobotStudio SDK, [https://developercenter.robotstudio.com/api/robotstudio/articles/How-To/SmartComponent/Creating-a-SmartComponent.html](https://developercenter.robotstudio.com/api/robotstudio/articles/How-To/SmartComponent/Creating-a-SmartComponent.html) )

**The problem:**  
My code outputs all types of files exept the file I want because the .rslib file is nowhere to be found.  
Did anyone came across this already and do you have a solution because now I am stuck. I use the exact code as in the how to guide.

With kind regards,  
Nick

---

<div class="post-metadata">

**Author:** ![Gustaffson](https://avatars.discourse-cdn.com/v4/letter/g/71e660/32.png) [@Gustaffson](https://tech-community.robotics.abb.com/u/Gustaffson)\
**Post date:** [October 29, 2020, 9:35am UTC](https://tech-community.robotics.abb.com/t/no-rslib-file-generated/9775/2 "2020-10-29T09:35:41Z")

</div>

**Problem solved!**  
The problem was caused in the Post-build event command line.

_Wrong way (this was automaticly set in VS):_  
_copy /y “$(TargetPath)” “$(ProjectDir)”_  
_“D:\RobotStudio\Bin\LibraryCompiler.exe” “$(ProjectDir)SCTest2.xml”_

_Right way:_  
_“D:\RobotStudio\Bin\LibraryCompiler.exe” “$(ProjectDir)SCTest2.xml”_

_copy /y “$(TargetPath)” “$(ProjectDir)”_

So you have to swap the post-build event lines if you have the same problem.

---

<div class="post-metadata">

**Author:** ![samatcha](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@samatcha](https://tech-community.robotics.abb.com/u/samatcha)\
**Post date:** [December 17, 2021, 9:00am UTC](https://tech-community.robotics.abb.com/t/no-rslib-file-generated/9775/3 "2021-12-17T09:00:47Z")

</div>

> [@Gustaffson](#):
>
> **Problem solved!**  
> The problem was caused in the Post-build event command line.
> 
> _Wrong way (this was automaticly set in VS):_  
> _copy /y “$(TargetPath)” “$(ProjectDir)”_  
> _“D:\RobotStudio\Bin\LibraryCompiler.exe” “$(ProjectDir)SCTest2.xml”_
> 
> _Right way:_  
> _“D:\RobotStudio\Bin\LibraryCompiler.exe” “$(ProjectDir)SCTest2.xml”_
> 
> _copy /y “$(TargetPath)” “$(ProjectDir)”_
> 
> So you have to swap the post-build event lines if you have the same problem.

Thank you so much
