title: How to build a subfolder in Bitbucket Pipelines
body: <p>I am struggling to configure the build in Bitbucket Pipelines.</p>
  <p>It's a C# solution and the code is located in a subfolder, rather than in the root folder of the repository. This is why when I build it, I get the error:</p>
  <blockquote>
  <p>+ dotnet restore</p>
  <p>MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.</p>
  </blockquote>
  <p>I've read the docs but there seems to be no option to try to specify a subfolder. How do you configure it then?</p>
  <p>Here's my .yml file:</p>
  <pre><code>image: microsoft/dotnet:latest
  
  pipelines:
    default:
      - step:
          caches:
            - dotnetcore
          script: # Modify the commands below to build your repository.
            - export PROJECT_NAME=MyProjectNameHere
            - export TEST_NAME=MyProjectNameHere
            - dotnet restore
            - dotnet build $PROJECT_NAME
            - dotnet test $TEST_NAME
  </code></pre>