# Recompiling Slicer with changes

**URL:** <https://discourse.slicer.org/t/recompiling-slicer-with-changes/803>\
**Category:** Development\
**Created:** [August 1, 2017, 4:21pm UTC](https://discourse.slicer.org/t/recompiling-slicer-with-changes/803 "2017-08-01T16:21:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![moselhy](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/moselhy/32/501_2.png) [@moselhy](https://discourse.slicer.org/u/moselhy)\
**Post date:** [August 1, 2017, 4:21pm UTC](https://discourse.slicer.org/t/recompiling-slicer-with-changes/803/1 "2017-08-01T16:21:42Z")

</div>

Hello,

I cloned the Slicer repository to C:\D\S4 and built it to C:\D\S4R using [these instructions](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Build_Instructions). Then, I made a change to C:\D\S4\Applications\SlicerApp\Main.cxx. Then, I opened C:\D\S4R\Slicer.sln and clicked “Build ALL\_BUILD”, and it seemed to build successfully. However, I don’t see the change that I made. Am I doing this correctly?

Edit: Nevermind. I saw the change.

Thanks

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [August 1, 2017, 4:44pm UTC](https://discourse.slicer.org/t/recompiling-slicer-with-changes/803/2 "2017-08-01T16:44:24Z")

</div>

Hi,

As an optimization, you could open `C:\D\S4R\Slicer-build\Slicer.sln` and only rebuild the project including the `Main.cxx` file.

Hth  
Jc
