title: How to setup Jenkins with ASP .NET Core
body: <p>I am trying to create a Pipeline on Jenkins, to automate my build, test and deploy process.</p>
  
  <pre><code>pipeline {
      agent any
      environment {
          myVersion = '0.9'
      }
      tools {
          msbuild '.NET Core 2.0.0'
      }
      stages {
          stage('checkout') {
            steps {
              checkout([$class: 'GitSCM', ...])
            }
          }
          stage('restore') {
              steps {
                  bat 'dotnet restore --configfile NuGet.Config'
              }
          }
          stage('build') {
              steps {
                  bat 'dotnet build'
              }
          }
          stage('publish') {
              steps {
                ...
              }
          }
      }
  }
  </code></pre>
  
  <p>When trying to run the build, I get this error message from Jenkins:</p>
  
  <p><strong>'dotnet' is not recognized as an internal or external command,
  operable program or batch file.</strong></p>
  
  <p>What do I have to change to make this environment work?</p>
  
  <p>I added my .NET CORE path etc. to the Jenkins Settings for MSBuild.</p>
  
  <p>What am I missing?</p>