locked
mdtool "archive" command in xamarin studio 6 RRS feed

  • Question

  • User136396 posted

    FYI, this command no longer does a build and archive. We were just doing a clean and archive on the build server in Xamarin Studio 5.x and had no problems. Upgraded the build server to the latest and it now needs you to run mdtool w/ the build then archive commands...

    Not a bad thing...surprised archive did a build before...this just wasn't documented...

    Monday, June 13, 2016 8:43 PM

All replies

  • User20490 posted

    Wow. Just now running into this same issue.

    Friday, June 24, 2016 5:58 PM
  • User34778 posted

    @KenYee You can generate generate archives using the build tasks included in xbuild:

    iOS: xbuild MySolotion.sln /p:Configuration=Ad-Hoc /p:Platform=iPhone /p:BuildIpa=true

    Android: xbuild /t:SignAndroidPackage /p:Configuration=Ad-Hoc Path/To/MyProject.Android.csproj

    Sunday, June 26, 2016 10:04 PM
  • User136396 posted

    Should we be using xbuild or mdtool for command line builds? For our project, we've used xbuild for Android and mdtool for iOS. mdtool operates on the top level project so it seemed more natural to use it...xbuild for Android only takes the lower level Android csproj file instead of a .sln file.

    Monday, June 27, 2016 1:32 PM
  • User34778 posted

    @KenYee, good question! We've always used xbuild at JobAdder because that was the approach used in the CI documentation: https://developer.xamarin.com/guides/cross-platform/ci/teamcity/

    For us, xbuild is used for our CI server to create automatic builds for testing. When it comes to publishing the app, we swap to a production configuration and package the apk/ipa using Xamarin Studios internal packaging tools.

    Tuesday, June 28, 2016 1:06 AM
  • User136396 posted

    We do xbuild and mdtool on our CI server and build all our QA/store builds on it. I'll give xbuild a try...seems to make sense to use the same tool, though it's very weird that they take different arguments (csproj vs. sln) on different platforms...

    Tuesday, June 28, 2016 1:18 PM
  • User34778 posted

    Yeah, I agree that its weird that projects and slns take different arguments. If you find a cleaner solution using xbuild I'd be interested to hear it.

    Thursday, June 30, 2016 2:06 AM