# How to Configure Jenkins to build .NET projects on Linux Machine

**URL:** <https://community.jenkins.io/t/how-to-configure-jenkins-to-build-net-projects-on-linux-machine/10263>\
**Category:** Ask a question\
**Tags:** question\
**Created:** [October 19, 2023, 12:06pm UTC](https://community.jenkins.io/t/how-to-configure-jenkins-to-build-net-projects-on-linux-machine/10263 "2023-10-19T12:06:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DiljithPeter](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@DiljithPeter](https://community.jenkins.io/u/DiljithPeter)\
**Post date:** [October 19, 2023, 12:06pm UTC](https://community.jenkins.io/t/how-to-configure-jenkins-to-build-net-projects-on-linux-machine/10263/1 "2023-10-19T12:06:15Z")

</div>

Hi there,

I am trying to add Capability to Jenkins to Build .NET 7 Project and getting failed. Right after the $ dotnet build command is being executed receives the below error.

I am using .NET: Build project (build) to build the project in the Linux environment.

$ dotnet build  
.NET Command Completed - Exit Code: -1

FATAL: Command execution failed.  
java.io.IOException: error=2, No such file or directory  
at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)  
at java.base/java.lang.ProcessImpl.(ProcessImpl.java:340)  
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:271)  
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)

I can confirm that the directory exists in the right path and the project name doesn’t contains any whitespaces. Any ideas?

Thanks, in advance.

---

<div class="post-metadata">

**Author:** ![slide\_o\_mix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/slide_o_mix/32/20977_2.png) [@slide\_o\_mix](https://community.jenkins.io/u/slide_o_mix)\
**Post date:** [October 19, 2023, 12:59pm UTC](https://community.jenkins.io/t/how-to-configure-jenkins-to-build-net-projects-on-linux-machine/10263/2 "2023-10-19T12:59:46Z")

</div>

It looks like to me that it can’t find the dotnet executable. Is dotnet installed for the user that Jenkins is running as?
