25

In Visual Studio 2010 SP1, there is an option on the right-click menu on a web project to Add Deployable Assemblies. Phil Haack blogged about it here.

In Visual Studio 11 beta and Visual Studio 2012, this option appears to be missing. Thankfully, you can easily round trip solutions between VS 2010 and VS 11 so I could just open the solution in VS 2010 to add the MVC assemblies to the _bin_deployableAssemblies folder.

Is it just my installation thats broken or do I need to install anything else to get this working?

1 Answer 1

38

The Add Deployable Assemblies dialog was a feature that enabled you to deploy MVC or Web Pages projects. It was necessary because in older versions all the assemblies were installed into the GAC on your dev machine but you wouldn't necessarily know if that was the case on the server. Thus this tooling gesture that made your project bin-deployable.

Starting with MVC 3 Tools Update we are now using Nuget package references, which means that your project is automatically bin-deployable. Since the tooling gesture is no longer necessary it was removed from VS 11.

7
  • @GeoffAppleford. In VS2012, Do I need to use CopyLocal to true since Add Deployable Assemblies is not available?
    – LCJ
    Sep 3, 2013 at 6:18
  • 1
    @Lijo - no the assemblies added via Nuget will automatically be added to the bin folder. Sep 3, 2013 at 7:19
  • There's still a problem though if you aren't referencing something via nuget (MVC, for example). How to handle that besides flipping the Copy Local flag to true? Sep 5, 2013 at 16:50
  • @ledbutter if you are not using a nuget reference (but instead referencing the binary from the GAC) then setting CopyLocal = true is your only option
    – marcind
    Sep 5, 2013 at 16:56
  • @marcind thanks for the confirmation. Yes, that's what I feared/assumed (I didn't set up this MVC project and am now trying to fix the deployment where the MVC DLL's are missing). Sep 5, 2013 at 16:57

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.