Xamarin Studio 5.6

Xamarin Studio 5.6

Sketches

Experiment and learn with a live, interactive Sketch file. Create C# code, and see the results right next to each line. You can even test your code right in the simulator, without even creating a project.

Cool bonus features:

  • Try using the built-in static CaptureValue(string groupName, object value) method to build a graph.
  • In Android and iOS (Classic), try adding Xamarin.Forms pages to the static RootPage property (it's a TabbedPage, so you can do RootPage.Children.Add (new ContentPage { Title = "empty" }); for example)
  • In iOS (Unified), try out RootView
  • In Android (with the Android toolkit selected), try out RootActivity.

Play with our sample sketches in https://github.com/xamarin/sketches.

Requirements:

  • iOS: Xcode 6, properly configured in Xamarin Studio’s SDK preferences.
  • Android: Xamarin Android Player is the only supported emulator at this time. You must be running a screen-unlocked image in the Player before opening or creating an Android Sketch.

Known issues:

  • You can only have one Sketch file of a particular platform type open at a time.
  • Creating classes or anonymous types in a Sketch is not currently supported. Try using a Tuple for now. Instead of creating methods, make Func<> delegates.
  • Sketches are evaluated line-by-line, just like the C# REPL. Keep this in mind, as a simple if/else statement may result in an error if the else is on its own line.
  • Android support is a VERY early preview. Our Sketch agent app takes some time to start up before the first evaluations come back to Xamarin Studio. Less code works better, currently. Try a bit more editing, or closing and reopening, if evaluation stalls.
  • 64-bit APIs on Mac (like SceneKit) are not yet supported.

Profiler

Integration with Xamarin Profiler has been added for iOS and Android applications. To start profiling an application, you can use either the Run menu or Right click on a project and select Start Profiling. You can also launch the profile as a standalone application from Tools -> Launch Profiler.

New options to enable developer instrumentation have been added into Android and iOS projects’ Build Options. These are not retroactive and you will be asked to enable them if the project’s build configuration doesn’t have them when profiling is requested for it.

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.