Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8518575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:01:01+00:00 2026-06-11T06:01:01+00:00

So when you install MVC into Visual Studio it puts the MVC dlls into

  • 0

So when you install MVC into Visual Studio it puts the MVC dlls into the GAC. Thus they do not need to be in the file system of your project to allow the project to build.

When we deploy this to live and our continuous integration server the required dependencies for MVC and Razor are not in version control. Quite why Microsoft has made this so complicated is beyond me.

I am one for automating everything I can so I am wondering what the best way is to solve the issue of the missing dlls.

Now for the ASP.Net MVC projects I have solved this using bin deployment as mentioned here http://haacked.com/archive/2011/05/25/bin-deploying-asp-net-mvc-3.aspx on Phil Haack’s blog. This works fine but I also have some library projects that reference System.Web.Mvc that will not compile on the build server and the bin deploy options in Visual Studio are not available for Library Projects.

I think the correct thing to do is use NuGet

Install-Package Microsoft.AspNet.Mvc -Version 3.0.20105.1

However, what is the best practice and are there any pitfalls to using NuGet in this way? e.g. Should I switch all my ASP.Net MVC web projects to utilise this Package from NuGet instead of bin deploying the dlls in the GAC?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:01:02+00:00Added an answer on June 11, 2026 at 6:01 am

    We have done something similar in a MVC 4 project.

    We installed MVC using NuGet, then enabled package restore on the project, committing the .nuget folder to the repository. http://blog.davidebbo.com/2011/08/easy-way-to-set-up-nuget-to-restore.html

    Install-Package Microsoft.AspNet.Mvc 
    Install-Package NuGetPowerTools
    Enable-PackageRestore 
    

    When the project is built on the build server, the missing packages are downloaded from nuget, when deploying they are included in the bin directory automatically.

    I would say your approach is correct rather than using the bin deploy method and committing the required assemblies to the repository.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need lightweight database for an ASP.NET MVC application. would prefer not to install
Is it necessary that we need to install asp.net mvc on hosting server to
Is there any lightweight mvc webframework which is not necessary to install to the
running asp.net mvc on iis6, do I need to install anything on the server?
I am not able to install web matrix 2 beta. I have MVC 4
What do I need to install to get the built-in validation messages of mvc
I'm trying to set up a new MVC 3 project. I have Visual Studio
I tried to install MVC Framework from the below URL http://www.asp.net/mVC/ First it is
I went to http://www.asp.net/mvc/ to try to install ASP.NET MVC. I didn't know, but
Now that ASP.NET MVC 2 is out , I tried to install it on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.