зеркало из https://github.com/xamarin/mac-samples.git
[AzureTodo] update to latest Azure package
This commit is contained in:
Родитель
73365870b8
Коммит
c1c85460d3
|
@ -54,13 +54,7 @@
|
|||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="Xamarin.Mac" />
|
||||
<Reference Include="Microsoft.WindowsAzure.Mobile">
|
||||
<HintPath>..\packages\WindowsAzure.MobileServices.1.3.2\lib\portable-win+net45+wp8+wpa81+monotouch+monoandroid\Microsoft.WindowsAzure.Mobile.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="Microsoft.WindowsAzure.Mobile.Ext">
|
||||
<HintPath>..\packages\WindowsAzure.MobileServices.1.3.2\lib\net45\Microsoft.WindowsAzure.Mobile.Ext.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>..\packages\Newtonsoft.Json.7.0.1\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
|
@ -70,6 +64,12 @@
|
|||
<Reference Include="System.Net.Http.Extensions">
|
||||
<HintPath>..\packages\Microsoft.Net.Http.2.2.29\lib\portable-net45+win8\System.Net.Http.Extensions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.WindowsAzure.Mobile">
|
||||
<HintPath>..\packages\Microsoft.Azure.Mobile.Client.3.0.3\lib\net45\Microsoft.WindowsAzure.Mobile.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.WindowsAzure.Mobile.Ext">
|
||||
<HintPath>..\packages\Microsoft.Azure.Mobile.Client.3.0.3\lib\net45\Microsoft.WindowsAzure.Mobile.Ext.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Resources\" />
|
||||
|
@ -91,9 +91,9 @@
|
|||
</Compile>
|
||||
<Compile Include="Classes\TodoItem.cs" />
|
||||
<Compile Include="Classes\TodoItemManager.cs" />
|
||||
<Compile Include="Classes\Constants.cs" />
|
||||
<Compile Include="Classes\TableDataSource.cs" />
|
||||
<Compile Include="Classes\TableDelegate.cs" />
|
||||
<Compile Include="Constants.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<InterfaceDefinition Include="MainWindow.xib" />
|
||||
|
|
|
@ -22,8 +22,7 @@ namespace AzureTodo
|
|||
{
|
||||
// Establish a link to Azure
|
||||
client = new MobileServiceClient (
|
||||
Constants.ApplicationURL,
|
||||
Constants.ApplicationKey
|
||||
Constants.ApplicationURL // Azure no longer requires an Application Key
|
||||
);
|
||||
|
||||
// Read any existing todo items from the Azure client
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
// Before you can successfully run this example application, you'll need to replace these
|
||||
// strings with ones that match your developer profile with Azure
|
||||
public static string ApplicationURL = string.Empty; // Example: @"https://company-name.azurewebsites.net"
|
||||
public static string ApplicationKey = string.Empty; // Example: @"CBnos...VYM69";
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="xamarinmac20" />
|
||||
<package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="xamarinmac20" />
|
||||
<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="xamarinmac20" />
|
||||
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="xamarinmac20" />
|
||||
<package id="WindowsAzure.MobileServices" version="1.3.2" targetFramework="xamarinmac20" />
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Microsoft.Azure.Mobile.Client" version="3.0.3" targetFramework="xamarinmac20" />
|
||||
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="xamarinmac20" />
|
||||
<package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="xamarinmac20" />
|
||||
<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="xamarinmac20" />
|
||||
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="xamarinmac20" />
|
||||
</packages>
|
|
@ -3,8 +3,14 @@ AzureToDoMac
|
|||
|
||||
This sample covers using Azure Cloud Data in a Xamarin.Mac application by creating a simple ToDo list application.
|
||||
|
||||
UPDATE: the most recent (Nov-16) version of the [Azure Mobile Client NuGet](https://www.nuget.org/packages/Microsoft.Azure.Mobile.Client/) doesn't explicitly support the Xamarin.Mac platform, so the NET45 assemblies have been referenced directly in this sample.
|
||||
|
||||
---
|
||||
|
||||
**NOTE:** You'll need to edit the `Constants` class and provide your Azure Developer Credentials by setting the `ApplicationURL` and `ApplicationKey` values _before_ this sample can be successfully run.
|
||||
**NOTE:** You'll need to edit the `Constants` class and provide your Azure Developer Credentials by setting the `ApplicationURL` values _before_ this sample can be successfully run.
|
||||
|
||||
---
|
||||
The table configured in Azure should also have the same columns as the `TodoItem` class: `id`, `text`, `notes`, `complete`.
|
||||
|
||||
---
|
||||
|
||||
![](Screenshots/01.png)
|
Двоичные данные
AzureTodoMac/Screenshots/01.png
Двоичные данные
AzureTodoMac/Screenshots/01.png
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 29 KiB После Ширина: | Высота: | Размер: 34 KiB |
Загрузка…
Ссылка в новой задаче