Search code examples
iosxamarin.iossolutioncsprojmdtool

Can I build Xamarin iOS from the csproj only an not use the solution command line


I have a few apps i want to build inside my solution and I want to build them separately

running : /Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool -v build "--configuration:Release|iPhone" ./42.csproj

fails.

I do see that all of Xamarin examples use a solution file (.sln) with the mdtool, but I am still wondering of there is a way to reference just on project inside my solution.


Solution

  • Well After talking with xamarin they claim that using mdtool is not recommended. I was told to use xbuild and the way to do it is:

    xbuild Project.sln /p:Configuration=AppStore /p:Platform=iPhone /p:BuildIpa=true /t:42
    

    This will set the BuildIpa flag to true.