MY company has a strict “no software installations allowed” policy. We are currently using VS2010 and MVC 2 that come with it when it was installed. We would like to upgrade to MVC 3 but because of the policy we can not use the standard MVC 3 tools installer nor do we have nuget for downlaoding or installing packages.
So is there any way to manually add/upgrade our projects to MVC 3 so we make use of the latest and greatest stuff? Is it as simple as getting the dll file and registering it to the GAC?
This is the best you can do I believe.
There is no completely , 100% manual way I believe. Still have to move things around and it sounds like you may have restriction issues but here it is Source:
To manually upgrade an existing ASP.NET MVC 2 application to version 3, do the following:
Create a new empty ASP.NET MVC 3 project on your computer. This project will contain some files that are required for the upgrade.
Copy the following files from the ASP.NET MVC 3 project into the corresponding location of your ASP.NET MVC 2 project. You’ll need to update any references to the jQuery library to account for the new filename ( jQuery-1.5.1.js):
Copy the packages folder in the root of the empty ASP.NET MVC 3 project solution into the root of your solution, which is in the directory where the solution’s .sln file is located.
If your ASP.NET MVC 2 project contains any areas, copy the /Views/Web.config file to the Views folder of each area.
In both Web.config files in the ASP.NET MVC 2 project, globally search and replace the ASP.NET MVC version. Find the following:
System.Web.Mvc, Version=2.0.0.0
Replace it with the following:
System.Web.Mvc, Version=3.0.0.0
In Solution Explorer, delete the reference to System.Web.Mvc (which points to the DLL from version 2), then add a reference to System.Web.Mvc (v3.0.0.0).
Add a reference to System.Web.WebPages.dll and System.Web.Helpers.dll. These assemblies are located in the following folders:
%ProgramFiles%\ Microsoft ASP.NET\ASP.NET MVC 3\Assemblies
%ProgramFiles%\ Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies
In Solution Explorer, right-click the project name and select Unload Project. Then right-click the project name again and select Edit ProjectName.csproj.
Locate the ProjectTypeGuids element and replace {F85E285D-A4E0-4152-9332-AB1D724D3325} with {E53F8FEA-EAE0-44A6-8774-FFD645390401}.
Save the changes, right-click the project, and then select Reload Project.
In the application’s root Web.config file, add the following settings to the assemblies section.
If the project references any third-party libraries that are compiled using ASP.NET MVC 2, add the following highlighted bindingRedirect element to the Web.config file in the application root under the configuration section: