Deployable dependencies in Visual Studio 2010 SP1 Beta
Join the DZone community and get the full member experience.Join For Free
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…
if you select it you will see dialog where you can select dependencies you want to add to your project package.
when packages you need are selected click ok. visual studio adds new folder to your project called _bin_deployableassemblies.
screenshot 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.
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.
Published at DZone with permission of Gunnar Peipman, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.