you 4.7.2 project probably references another project that uses a lower version of the MVC nuget packages. you should probably update all projects to the current version 5.3.0. if you can not upgrade than in the web.config use assembly bind to redirect older versions to current:
<!-- use System.Web.Mvc 5.3.0 -->
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-5.3.0.0" newVersion="5.3.0.0" />
</dependentAssembly>
https://learn.microsoft.com/en-us/dotnet/framework/configure-apps/redirect-assembly-versions
you second issue is that the nuget package Microsoft.AspNet.Mvc, which is .net 4.* based, can not be used with a .net core application. .net core has its own MVC package which is part of the Microsoft.NET.Sdk.Web sdk, and not a seperate nuget package.
simple .net 8 MVC project file (note sdk used):
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
</Project>