title: dotnet restore: exclude project
body: <p>I have a <code>project solution</code> where I also got a <code>wix</code> project. Actually <code>wix</code> is not supported by <code>dotnet</code>. On my build pipeline I have to run <code>dotnet restore</code> for the next <code>stage</code>.</p>
  
  <p>But because of the <code>wix</code> project, I always get the following error:</p>
  
  <blockquote>
    <p>D:\GitlabRunnerService\builds\fc40b836\0\customers\foo\foo-zls\src\foo.zls.setup.common\foo.zls.setup.common.wixproj(34,5): error : The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see <a href="http://wixtoolset.org/releases/" rel="nofollow noreferrer">http://wixtoolset.org/releases/</a></p>
  </blockquote>
  
  <p>Is there any solution <strong>how to exlude projects from the <code>dotnet restore</code> command?</strong></p>
  
  <hr>
  
  <h1>gitlab-ci.yml</h1>
  
  <pre><code>test:Common:
      stage: test
      script:
          - dotnet restore src
          - dotnet test --no-build -c Release -v n src\$env:TESTPROJECT\$env:TESTPROJECT.csproj --logger "trx;LogFileName=testreport.trx"
      after_script:
          - trx2junit src\$env:TESTPROJECT\Testresults\testreport.trx 
      artifacts:
          reports:
              junit: src\$env:TESTPROJECT\Testresults\testreport.xml
      tags:
          - dotnet-ps
  </code></pre>
  
  <p>In the <code>Release</code> configuration, the <code>wix</code> project is already excluded.</p>