From df0767d6745a274324b1dae921a73d8fb412ce0e Mon Sep 17 00:00:00 2001 From: veudayab Date: Mon, 25 Nov 2013 15:27:02 -0800 Subject: [PATCH 1/3] Updated ReadMe --- README.md | 83 ++++++------------------------------------------------- 1 file changed, 9 insertions(+), 74 deletions(-) diff --git a/README.md b/README.md index f43290e37..0d30cc223 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ For general suggestions about Windows Azure please use our [UserVoice forum](htt # Storage Client Library for .NET 4, Windows 8, and Windows Phone 8 (3.0.0.0) -The Storage Client Library ships with the Windows Azure SDK for .NET and also on NuGet. You'll find the latest version and hotfixes on NuGet via the `WindowsAzure.Storage` package. You can [read about the 2.1 release on the storage team blog post](http://blogs.msdn.com/b/windowsazurestorage/archive/2013/09/07/announcing-storage-client-library-2-1-rtm.aspx). +The Storage Client Library ships with the Windows Azure SDK for .NET and also on NuGet. You'll find the latest version and hotfixes on NuGet via the `WindowsAzure.Storage` package. Please note that Windows 8 and Windows Phone 8 libraries are CTP (Community Technology Preview) releases. @@ -61,8 +61,8 @@ Technology Preview) releases. To get the source code of the SDK via git just type: ```bash -git clone git://github.com/WindowsAzure/azure-sdk-for-net.git -cd azure-sdk-for-net +git clone git://github.com/WindowsAzure/azure-storage-net.git +cd azure-storage-net ``` ### Via NuGet @@ -76,7 +76,7 @@ within your project you can also have them installed by the .NET package manager ### OData -This version depends on three libraries (collectively referred to as ODataLib), which are resolved through the ODataLib (version 5.2.0) packages available through NuGet and not the WCF Data Services installer which currently contains 5.0.0 versions. +This version depends on three libraries (collectively referred to as ODataLib), which are resolved through the ODataLib (version 5.6.0) packages available through NuGet and not the WCF Data Services installer which currently contains 5.0.0 versions. The ODataLib libraries can be downloaded directly or referenced by your code project through NuGet. @@ -90,16 +90,16 @@ The specific ODataLib packages are: FiddlerCore is required by: -- Test\Unit\FaultInjection\HttpMangler -- Test\Unit\FaultInjection\XStoreMangler -- Test\Unit\DotNet40 +- Test\FaultInjection\HttpMangler +- Test\FaultInjection\AzureStoreMangler +- Test\WindowsDesktop This dependency is not included and must be downloaded from [http://www.fiddler2.com/Fiddler/Core/](http://www.fiddler2.com/Fiddler/Core/). Once installed: -- Copy `FiddlerCore.dll` `\azure-sdk-for-net\microsoft-azure-api\Services\Storage\Test\Unit\FaultInjection\Dependencies\DotNet2` -- Copy `FiddlerCore4.dll` to `azure-sdk-for-net\microsoft-azure-api\Services\Storage\Test\Unit\FaultInjection\Dependencies\DotNet4` +- Copy `FiddlerCore.dll` `\azure-storage-net\Test\FaultInjection\Dependencies\DotNet2` +- Copy `FiddlerCore4.dll` to `azure-storage-net\Test\FaultInjection\Dependencies\DotNet4` ## Code Samples @@ -133,71 +133,6 @@ CloudTable peopleTable = tableClient.GetTableReference("people"); peopleTable.Create(); ``` -# Windows Azure Management Libraries - -Automate, configure and command your Windows Azure deployments, infrastructure and accounts with the Windows Azure Management Libraries. - -> *Preview:* At this time the Windows Azure Management Libraries are in the preview state as the teams gather feedback and prepare for the initial release. Please enjoy using the libraries and source in any capacity, but understand that there may be breaking changes with the 1.0 release. - -## Download & Install - -### Via Git - -To get the source code of the SDK via git just type: - -```bash -git clone git://github.com/WindowsAzure/azure-sdk-for-net.git -cd azure-sdk-for-net\libraries -``` - -### Via NuGet - -Official binaries are distributed by Microsoft and available using the .NET package manager [NuGet](http://www.nuget.org/). - -To get all of the management libraries setup in your project: - -`Install-Package Microsoft.WindowsAzure.Management.Libraries -IncludePrerelease` - -> You can also install just the management library for a service of interest. To deploy a virtual machine to the cloud, the `Microsoft.WindowsAzure.Management.Compute` package can be used, for example. - -### Code Samples - -Once a storage account has been created, the Windows Storage SDK can be used to upload .CSPKG files into the storage account. Then, the cloud service could be deployed. The code below demonstrates this functionality. - -```csharp -var blobs = CloudStorageAccount.Parse(storageConnectionString).CreateCloudBlobClient(); - -var container = blobs.GetContainerReference("deployments"); - -await container.CreateIfNotExistsAsync(); - -await container.SetPermissionsAsync( - new BlobContainerPermissions() - { - PublicAccess = BlobContainerPublicAccessType.Container - }); - -var blob = container.GetBlockBlobReference("MyCloudService.cspkg"); - -await blob.UploadFromFileAsync("MyCloudService.cspkg", FileMode.Open); - -var cloudServiceName = "MyCloudService"; - -using (ComputeManagementClient client = - CloudContext.Clients.CreateComputeManagementClient(Credentials)) -{ - await client.Deployments.CreateAsync(cloudServiceName, - DeploymentSlot.Production, - new DeploymentCreateParameters - { - Name = cloudServiceName + "Prod", - PackageUri = blob.Uri, - Configuration = File.ReadAllText("MyCloudService.cscfg"), - StartDeployment = true - }); -} -``` - # Learn More - [Windows Azure .NET Developer Center](http://www.windowsazure.com/en-us/develop/net/) From 3b74561da22cbe126ca95e64ca8048948d60e5b6 Mon Sep 17 00:00:00 2001 From: veudayab Date: Mon, 25 Nov 2013 17:39:24 -0800 Subject: [PATCH 2/3] Updated ReadMe --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0d30cc223..5b6460133 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ The Windows Azure SDK for .NET allows you to build Windows Azure applications that take advantage of scalable cloud computing resources. -This repository contains the open source subset of the .NET SDK. For documentation of the +This repository contains the open source subset of the .NET Storage SDK. For documentation of the complete SDK, please see the [Windows Azure .NET Developer Center](http://www.windowsazure.com/en-us/develop/net/). # Features @@ -70,8 +70,13 @@ cd azure-storage-net To get the binaries of this library as distributed by Microsoft, ready for use within your project you can also have them installed by the .NET package manager [NuGet](http://www.nuget.org/). +#### Desktop `Install-Package WindowsAzure.Storage` +#### Windows 8 and Windows Phone +`Install-Package WindowsAzure.Storage-Preview -Pre` +`Install-Package WindowsAzure.Storage.Table-Preview -Pre` + ## Dependencies ### OData From 10e0cdaed2172e0c1cdca7e0ce3c6aef9be2365a Mon Sep 17 00:00:00 2001 From: veudayab Date: Mon, 25 Nov 2013 18:12:55 -0800 Subject: [PATCH 3/3] Unit test fix --- Test/ClassLibraryCommon/Table/TableQueryableTests.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Test/ClassLibraryCommon/Table/TableQueryableTests.cs b/Test/ClassLibraryCommon/Table/TableQueryableTests.cs index 07fcabb30..6b0a2975e 100644 --- a/Test/ClassLibraryCommon/Table/TableQueryableTests.cs +++ b/Test/ClassLibraryCommon/Table/TableQueryableTests.cs @@ -175,20 +175,20 @@ public void MyTestCleanup() [TestCategory(TenantTypeCategory.DevStore), TestCategory(TenantTypeCategory.DevFabric), TestCategory(TenantTypeCategory.Cloud)] public void TableQueryableExecuteQueryGeneric() { - currentTable = tableClient.GetTableReference(GenerateRandomTableName()); - currentTable.CreateIfNotExists(); + CloudTable table = tableClient.GetTableReference(GenerateRandomTableName()); + table.CreateIfNotExists(); BaseEntity entity = new BaseEntity("mypk", "myrk"); TableOperation operation = TableOperation.Insert(entity); - currentTable.Execute(operation); + table.Execute(operation); - IQueryable query = currentTable.CreateQuery().Where(x => x.PartitionKey == "mypk"); + IQueryable query = table.CreateQuery().Where(x => x.PartitionKey == "mypk"); foreach (BaseEntity ent in query.ToList()) { Assert.AreEqual("mypk", ent.PartitionKey); } - IEnumerable entities1 = GetEntities(currentTable, "mypk"); + IEnumerable entities1 = GetEntities(table, "mypk"); foreach (BaseEntity ent in entities1) { Assert.AreEqual("mypk", ent.PartitionKey);