Setup for Development on the Media Services SDK for .NET
Updated: June 4, 2013
This topic is a developer task in the series Building Applications with the Media Services SDK for .NET. The setup tasks in this topic are required for developing Windows Azure Media Services applications with the Media Services SDK for .NET.
The following prerequisites are required for development based on the Windows Azure Media Services SDK.
A Media Services account in a new or existing Windows Azure subscription. See the topic How to Create a Media Services Account.
Operating Systems: Windows 7, Windows 2008 R2, or Windows 8.
.NET Framework 4.5 or .NET Framework 4.
Visual Studio 2012 or Visual Studio 2010 SP1 (Professional, Premium, Ultimate, or Express).
Note The Media Services SDK has dependency on multiple libraries (for example, Windows Azure Storage SDK for .NET and WCF Data Services for OData). You can use windowsazure.mediaservices nuget to install and add the Media Services SDK to your project, in which case all the dependencies get installed and added to your project automatically. You can also use GitHub to get and build the Media Services SDK, in which case all the necessary dependencies get downloaded and extracted automatically. In either method, you do not need to download dependencies manually.
Setting up a project
This section describes how to set up a Visual Studio project for Media Services development.
Create a project in Visual Studio 2012 or 2010 SP1.
Use NuGet to install and add the Media Services SDK to your project.
To add required references using windowsazure.mediaservices NuGet package, do the following. In Visual Studio main menu, select TOOLS -> Library Package Manager -> Package Manager Console. In the console window type
Install-Package windowsazure.mediaservicesand press enter. You can also manage NuGet packages using the dialog. For more information, see NuGet docs.
Add a reference to the System.Configuration assembly.
To add references using the Manage References dialog, do the following. Right-click on the References node in Solution Explorer and select Add Reference…. In the Manage References dialog, select the appropriate assemblies (in this case System.Configuration.)
Add the following using (Imports in Visual Basic) statements to reference the required namespaces for the Media Services SDK.
using System; using System.Linq; using System.Configuration; using System.IO; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Microsoft.WindowsAzure; using Microsoft.WindowsAzure.StorageClient; using Microsoft.WindowsAzure.MediaServices.Client;
You have now set up the project. Continue to the next topic: Connect to Media Services Using the Media Services SDK.
ConceptsBuilding Applications with the Media Services SDK for .NET
Connect to Media Services Using the Media Services SDK
Ingest Assets with the Media Services SDK for .NET
Process Assets with the Media Services SDK for .NET
Manage Assets with the Media Services SDK for .NET
Deliver Assets with the Media Services SDK for .NET
Quotas and Limitations