title: Xarmin iOS MSBuild - Missing OutputPath?
body: <p>I am currently building my Xamarmin iOS project from the command line:</p>
  
  <pre><code>MSBuild "C:\code\MyProject.iOS.csproj" /t:Build /p:Configuration=Ad-Hoc;Platform=iPhone;ServerAddress=MACIP;ServerUser=MACUSER
  </code></pre>
  
  <p>It fails with the following error:</p>
  
  <blockquote>
    <p>The OutputPath property is not set for project 'MyProject.iOS.csproj'.
    Please check to make sure that you have specified a valid combination
    of Configuration and Platform for this project.</p>
  </blockquote>
  
  <p>However, I there is an OutputPath set when I examine the CSPROJ.</p>
  
  <p><a href="https://i.stack.imgur.com/8lEhx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8lEhx.png" alt="enter image description here"></a></p>
  
  <p>I can get around this by forcing an "OutputPath" parameter at the command line:</p>
  
  <pre><code>OutputPath="C:\builds\xamarin\cellar-ios"
  </code></pre>
  
  <p><strong>Note:</strong> <code>OutputPath="C:\builds\xamarin\cellar-ios\"</code> does not work and build fails (notice ending back slash)</p>
  
  <p>However this creates a strange folder structure where it appends the filename:</p>
  
  <p><a href="https://i.stack.imgur.com/X1VeI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X1VeI.png" alt="enter image description here"></a></p>
  
  <p>Thoughts on what I'm doing wrong here? I feel the setup is very close!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Using the following parameters I'm able to get it to work. Note I still have to manually include the <code>OutputPath</code> but this gets me by for now.</p>
  
  <pre><code>/t:Build /p:Configuration=Ad-Hoc;Platform=iPhone;ServerAddress=SERVER_IP;ServerUser=USER;ServerPassword=PASS;OutputPath=bin\iPhone\Ad-Hoc\
  </code></pre>