Skip to content

Commit

Permalink
Merge pull request #112 from Microsoft/backport/demo_fixes
Browse files Browse the repository at this point in the history
Fix demo (on master branch)
  • Loading branch information
achocron authored Dec 16, 2016
2 parents cf15edc + 4affe50 commit 4f7640b
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,22 @@
<HintPath>..\..\..\packages\Xamarin.Forms.2.3.3.175\lib\MonoAndroid10\Xamarin.Forms.Xaml.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.Android.Bindings">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.0.4.1\lib\MonoAndroid403\Microsoft.Azure.Mobile.Android.Bindings.dll</HintPath>
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.0.5.0\lib\MonoAndroid403\Microsoft.Azure.Mobile.Android.Bindings.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.0.4.1\lib\MonoAndroid403\Microsoft.Azure.Mobile.dll</HintPath>
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.0.5.0\lib\MonoAndroid403\Microsoft.Azure.Mobile.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.Crashes.Android.Bindings">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Crashes.0.4.1\lib\MonoAndroid403\Microsoft.Azure.Mobile.Crashes.Android.Bindings.dll</HintPath>
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Crashes.0.5.0\lib\MonoAndroid403\Microsoft.Azure.Mobile.Crashes.Android.Bindings.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.Crashes">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Crashes.0.4.1\lib\MonoAndroid403\Microsoft.Azure.Mobile.Crashes.dll</HintPath>
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Crashes.0.5.0\lib\MonoAndroid403\Microsoft.Azure.Mobile.Crashes.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.Analytics.Android.Bindings">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Analytics.0.4.1\lib\MonoAndroid403\Microsoft.Azure.Mobile.Analytics.Android.Bindings.dll</HintPath>
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Analytics.0.5.0\lib\MonoAndroid403\Microsoft.Azure.Mobile.Analytics.Android.Bindings.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.Analytics">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Analytics.0.4.1\lib\MonoAndroid403\Microsoft.Azure.Mobile.Analytics.dll</HintPath>
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Analytics.0.5.0\lib\MonoAndroid403\Microsoft.Azure.Mobile.Analytics.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
<package id="Xamarin.Android.Support.v7.RecyclerView" version="23.3.0" targetFramework="monoandroid70" />
<package id="Xamarin.Android.Support.Vector.Drawable" version="23.3.0" targetFramework="monoandroid70" />
<package id="Xamarin.Forms" version="2.3.3.175" targetFramework="monoandroid70" />
</packages>
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -89,24 +89,6 @@
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="Xamarin.iOS" />
<Reference Include="Microsoft.Azure.Mobile">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.0.4.1\lib\Xamarin.iOS10\Microsoft.Azure.Mobile.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.iOS.Bindings">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.0.4.1\lib\Xamarin.iOS10\Microsoft.Azure.Mobile.iOS.Bindings.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.Analytics">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Analytics.0.4.1\lib\Xamarin.iOS10\Microsoft.Azure.Mobile.Analytics.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.Analytics.iOS.Bindings">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Analytics.0.4.1\lib\Xamarin.iOS10\Microsoft.Azure.Mobile.Analytics.iOS.Bindings.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.Crashes">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Crashes.0.4.1\lib\Xamarin.iOS10\Microsoft.Azure.Mobile.Crashes.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.Crashes.iOS.Bindings">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Crashes.0.4.1\lib\Xamarin.iOS10\Microsoft.Azure.Mobile.Crashes.iOS.Bindings.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Core">
<HintPath>..\..\..\packages\Xamarin.Forms.2.3.3.175\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll</HintPath>
</Reference>
Expand All @@ -119,6 +101,24 @@
<Reference Include="Xamarin.Forms.Xaml">
<HintPath>..\..\..\packages\Xamarin.Forms.2.3.3.175\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.0.5.0\lib\Xamarin.iOS10\Microsoft.Azure.Mobile.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.iOS.Bindings">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.0.5.0\lib\Xamarin.iOS10\Microsoft.Azure.Mobile.iOS.Bindings.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.Analytics">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Analytics.0.5.0\lib\Xamarin.iOS10\Microsoft.Azure.Mobile.Analytics.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.Analytics.iOS.Bindings">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Analytics.0.5.0\lib\Xamarin.iOS10\Microsoft.Azure.Mobile.Analytics.iOS.Bindings.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.Crashes">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Crashes.0.5.0\lib\Xamarin.iOS10\Microsoft.Azure.Mobile.Crashes.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.Crashes.iOS.Bindings">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Crashes.0.5.0\lib\Xamarin.iOS10\Microsoft.Azure.Mobile.Crashes.iOS.Bindings.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Contents.json">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
<package id="Microsoft.Azure.Mobile.Analytics" version="0.5.0" targetFramework="xamarinios10" />
<package id="Microsoft.Azure.Mobile.Crashes" version="0.5.0" targetFramework="xamarinios10" />
<package id="Xamarin.Forms" version="2.3.3.175" targetFramework="xamarinios10" />
</packages>
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,6 @@
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Reference Include="Microsoft.Azure.Mobile">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.0.4.1\lib\portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Microsoft.Azure.Mobile.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.Analytics">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Analytics.0.4.1\lib\portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Microsoft.Azure.Mobile.Analytics.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.Crashes">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Crashes.0.4.1\lib\portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Microsoft.Azure.Mobile.Crashes.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Core">
<HintPath>..\..\..\packages\Xamarin.Forms.2.3.3.175\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Core.dll</HintPath>
</Reference>
Expand All @@ -92,6 +83,15 @@
<Reference Include="Xamarin.Forms.Xaml">
<HintPath>..\..\..\packages\Xamarin.Forms.2.3.3.175\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Xaml.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.0.5.0\lib\portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Microsoft.Azure.Mobile.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.Analytics">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Analytics.0.5.0\lib\portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Microsoft.Azure.Mobile.Analytics.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Mobile.Crashes">
<HintPath>..\..\..\packages\Microsoft.Azure.Mobile.Crashes.0.5.0\lib\portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Microsoft.Azure.Mobile.Crashes.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,10 @@ void TestCrash(object sender, EventArgs e)

void DivideByZero(object sender, EventArgs e)
{
try
{
int x = (42 / int.Parse("0"));
}
catch (Exception)
{
System.Diagnostics.Debug.WriteLine("CAUGHT THE EXCEPTION");
}
/* This is supposed to cause a crash, so we don't care that the variable 'x' is never used */
#pragma warning disable CS0219
int x = (42 / int.Parse("0"));
#pragma warning restore CS0219
}

void UpdateEnabled(object sender, ToggledEventArgs e)
Expand Down
2 changes: 1 addition & 1 deletion Apps/Contoso.Forms.Demo/Contoso.Forms.Demo/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
<package id="Microsoft.Azure.Mobile.Analytics" version="0.5.0" targetFramework="portable45-net45+win8+wp8+wpa81" />
<package id="Microsoft.Azure.Mobile.Crashes" version="0.5.0" targetFramework="portable45-net45+win8+wp8+wpa81" />
<package id="Xamarin.Forms" version="2.3.3.175" targetFramework="portable45-net45+win8+wp8+wpa81" />
</packages>
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ void TestCrash(object sender, EventArgs e)
void DivideByZero(object sender, EventArgs e)
{
/* This is supposed to cause a crash, so we don't care that the variable 'x' is never used */
#pragma warning disable CS0219
#pragma warning disable CS0219
int x = (42 / int.Parse("0"));
#pragma warning restore CS0219
#pragma warning restore CS0219
}

void UpdateEnabled(object sender, ToggledEventArgs e)
Expand Down

0 comments on commit 4f7640b

Please sign in to comment.