2

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.

Eran Chetzroni
  • 1,046
  • 2
  • 14
  • 27

2 Answers2

2

You can run it like this:

/Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool -v build -c:"Release|iPhone" -p:"42"

You need to make sure you are in your solution folder when you run this. The 42 in the above command should reference the sub folder that your iOS project file is in, not the project file itself.

Richard Edwards
  • 1,379
  • 1
  • 17
  • 30
  • It seems that at the time I wrote the question this was not possible, but xamarin added this feature later on. Thanks Richard – Eran Chetzroni Sep 15 '15 at 07:45
1

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.

Srgrn
  • 1,770
  • 16
  • 30