# Issue with Build Wrapper on C++ project

**URL:** <https://community.sonarsource.com/t/issue-with-build-wrapper-on-c-project/42289>\
**Category:** SonarQube Server / Community Build\
**Tags:** windows, build-wrapper, sonarqube, cfamily\
**Created:** [April 26, 2021, 8:57pm UTC](https://community.sonarsource.com/t/issue-with-build-wrapper-on-c-project/42289 "2021-04-26T20:57:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aashna](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@aashna](https://community.sonarsource.com/u/aashna)\
**Post date:** [April 26, 2021, 8:57pm UTC](https://community.sonarsource.com/t/issue-with-build-wrapper-on-c-project/42289/1 "2021-04-26T20:57:27Z")

</div>

We use a `grunt build` command to build our project.

We ran `build-wrapper-win-x86-64.exe --out-dir . grunt build` to execute the build wrapper. However, we are getting the following error:

`C:\Users\<path>>build-wrapper.exe --out-dir . grunt build. Could not execute grunt build. The system cannot find the file specified.`

The same command, using grunt build, works on a Mac but not on Windows10. Any suggestions on how to solve this?

---

<div class="post-metadata">

**Author:** ![Amelie](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/amelie/32/66942_2.png) [@Amelie](https://community.sonarsource.com/u/Amelie)\
**Post date:** [April 29, 2021, 2:31pm UTC](https://community.sonarsource.com/t/issue-with-build-wrapper-on-c-project/42289/2 "2021-04-29T14:31:28Z")

</div>

Hello @aashna and welcome to our community!

First, can you confirm that this command `grunt build` works on Windows10 without the build-wrapper?  
If so, I can suggest you to write the full path to `grunt build` with its extension. This should solve your problem.

---

<div class="post-metadata">

**Author:** ![aashna](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@aashna](https://community.sonarsource.com/u/aashna)\
**Post date:** [April 29, 2021, 6:33pm UTC](https://community.sonarsource.com/t/issue-with-build-wrapper-on-c-project/42289/3 "2021-04-29T18:33:27Z")

</div>

@Amelie Hi Amelie, thank you for the quick response. Using the MSBuild command behind the grunt build solved the issue. Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [May 6, 2021, 6:34pm UTC](https://community.sonarsource.com/t/issue-with-build-wrapper-on-c-project/42289/4 "2021-05-06T18:34:17Z")

</div>

Closed on May 6, 2021, 6:34pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
