Deployable dependencies in Visual Studio 2010 SP1 Beta

Posted by DigiMortal on ASP.net Weblogs See other posts from ASP.net Weblogs or by DigiMortal
Published on Mon, 13 Dec 2010 07:16:03 GMT Indexed on 2010/12/13 13:09 UTC
Read the original article Hit count: 510

Filed under:
|

One new feature that comes with Visual Studio 2010 SP1 Beta is support for deployment references. Deployment reference means that you can include all necessary DLL-s to deployment package so your application has all assemblies it needs to run with it in deployment package. In this posting I will show you how to use deployment dependencies.

When I open my ASP.NET web application I have new option for references when I right-click on my web project: Add Deployable Dependencies…

Visual Studio 2010 SP1 Beta: Add deployable dependencies

If you select it you will see dialog where you can select dependencies you want to add to your project package.

Visual Studio 2010 SP1 Beta: Select deployable dependencies

When packages you need are selected click OK. Visual Studio adds new folder to your project called _bin_DeployableAssemblies.

Visual Studio 2010 SP1 Beta: Deployable references for RazorScreenshot on right shows the list of assemblies added for ASP.NET Pages and Razor. All DLL-s required to run ASP.NET MVC 3 with Razor view engine are here. I am not sure if NuGet.Core.dll is required in production but if it is added then let it be there.

Deploy to Azure

I tried to deploy my ASP.NET MVC project that uses Razor to Windows Azure after adding deployable references to my project.

Deployment went fine and web role instance started without any problems. The only DLL reference I made as local was the one for System.Web.Mvc. All Razor stuff came with deployable dependencies.

Conclusion

Visual Studio support for deployable dependencies is great because this way component providers can build definitions for their components so also assemblies that are loaded dynamically at runtime will be in deployment package.

© ASP.net Weblogs or respective owner

Related posts about ASP.NET

Related posts about Visual Studio