I have an ASP.NET Web App which I want to build and run using .NET 4.7.1 (it used to run using .NET 4.5 or I believe so).
I have updated the Target Framework of the project to .NET Framework 4.7.1 as well as reinstalled all the NuGet dependencies using this command: Update-Package -reinstall
My packages.config now says for all the packages this: targetFramework="net471"
After building my solution, I went and opened one of the DLLs of my Web App using ILSpy and I found this:
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null // Global type: // Architecture: AnyCPU (64-bit preferred) // Runtime: v4.0.30319
But at the same time, the assembly says this:
[assembly: TargetFramework(".NETFramework,Version=v4.7.1", FrameworkDisplayName = ".NET Framework 4.7.1")]
I am obviously missing something but I have no clue what it is. From this information, it seems I am still running on .NET 4.5 but I don't know why.
My Visual Studio version is 2017
Thanks!