Getting the MVC3 assemblies as part of your Windows Azure deployment

There have been several techniques that have been posted on getting the MVC3 reference assemblies deployed as part of your Windows Azure Solution.

This is something I learned today is in Visual Studio 2010 SP1.

If you open up the context menu for the project, you’ll see “Add Deployable Dependencies”.  When you select the parts you need it adds the _bin_deployableAssemblies to the project and a copy.  With Vs2010 SP1, the build targets have been updated to ensure these are emitted to your /bin path as required.

More on the targets approach here from Scott Hanselman