Skip to content

Instantly share code, notes, and snippets.

/t:restore;build;pack /p:PackageVersion=$(Build.BuildNumber)-beta /p:PackageOutputPath=$(build.artifactstagingdirectory)/beta /p:AssemblyFileVersion=$(Build.BuildNumber)

Hey! Are you going to Build? We should hang out.

Let's grab a coffee, chat over lunch, and take some of our sweet Merge Conflict stickers!

Sunday

Monday

  • 12 - 1PM: LUNCH with CDAs/Xamarins: Find our cool signs in the lunch area
  • 2:00 - 2:20 PM: SESSION THR2438 Start building mobile apps in 5 minutes with Xamarin Live Player
public bool IsPlayServicesAvailable ()
{
int resultCode = GoogleApiAvailability.Instance.IsGooglePlayServicesAvailable (this);
if (resultCode != ConnectionResult.Success)
{
if (GoogleApiAvailability.Instance.IsUserResolvableError(resultCode))
@jamesmontemagno
jamesmontemagno / info.md
Last active March 20, 2018 15:27
Updating PCL to .NET Standard

The goal here is to convert your PCL projects to .NET Standard projects and not lose any Git history. The key is to trick Git a bit by simply creating a new library, copy files into it, delete the old PCL library, and then rename the folder and project to the original PCL name.

6 Steps to Converting your PCL Library to .NET Standard

  1. Create new .NET Standard Library targeting 2.0 and name it NAME.Standard
  2. Copy all files from PCL to .NET Standard Library
  3. Delete PCL library and Delete the folder
  4. Rename the .NET Standard Libary to the PCL's old name and rename the folder
  5. Re-install all NuGets
  6. Add references back
// To parse this JSON data, add NuGet 'Newtonsoft.Json' then do:
//
// using QuickType;
//
// var data = TextAnalytics.FromJson(jsonString);
namespace QuickType
{
using System;
using System.Net;
public class Rootobject
{
public Languagedetection languageDetection { get; set; }
public Keyphrases keyPhrases { get; set; }
public Sentiment sentiment { get; set; }
}
public class Languagedetection
{
{
"languageDetection": {
"documents": [
{
"id": "dc06a0f6-b232-4672-9765-f2c46bad0bac",
"detectedLanguages": [
{
"name": "English",
"iso6391Name": "en",
"score": 1.0
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using MyFirstOouiApp.Models;
using MyFirstOouiApp.Pages;
using Ooui.AspNetCore;
using Xamarin.Forms;
namespace MyFirstOouiApp.Controllers
//Add using statements:
//using Xamarin.Forms;
//using Ooui.AspNetCore;
//Add these in Configure:
//app.UseOoui();
//Forms.Init();
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MyFirstOouiApp.Pages.MyPage">
<ContentPage.Content>
<StackLayout>
<Label Text="Hello World" FontSize="Large"
HorizontalOptions="Center" HorizontalTextAlignment="Center"/>
<Button Text="Click Me!!!" Clicked="Handle_Clicked" HeightRequest="50"/>
</StackLayout>