asp.net-mvc – Doubt with AspNet.Mvc version

Question:

In my packages.config I have the following settings:

<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="bootstrap" version="3.0.0" targetFramework="net45" />
  <package id="jQuery" version="1.10.2" targetFramework="net45" />
  <package id="Microsoft.AspNet.Mvc" version="5.2.3" targetFramework="net45" />
  <package id="Microsoft.AspNet.Razor" version="3.2.3" targetFramework="net45" />
  <package id="Microsoft.AspNet.WebPages" version="3.2.3" targetFramework="net45" />
  <package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.0" targetFramework="net45" />
  <package id="Microsoft.Net.Compilers" version="1.0.0" targetFramework="net45" developmentDependency="true" />
  <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
  <package id="Modernizr" version="2.6.2" targetFramework="net45" />
</packages>

My hosting server shows that I have:

ASP.NET 4.5

MVC 5

In this case I need to change the version of my AspNet.Mvc? If necessary how to make this change?

Answer:

Do not.

Just make sure your project is exactly in this version of the framework by right-clicking on the project and selecting the Properties option.

If it's in version 4.5 of the framework and the build doesn't fail, the project is able to go up in this environment.

Scroll to Top