I am in the process of switching to a new laptop. I copied all the files over and have a VS.NET solution with a large web site(can't convert this to a web application as it is too big and don't have the time now). I'm able to build the site on my old laptop but get this error when I try it on my new one:
Feature 'using static' is not available in C# 5. Please use language version 6 or greater
I looked at the following but did not find an answer that fits my situation:
The solution at Feature 'interpolated strings' is not available in C# 5. Please use language version 6 or greater doesn't work because I don't see the Advanced button in the Build dialog box.
I also looked at How to use C# 6 with Web Site project type? but found the solution doesn't work for me either. I tried to get the latest Microsoft.CodeDom.Providers.DotNetCompilerPlatform but still get the same error.
Here's the code the error is occurring on:
using static ClientUploadToolValueMapping;
The target framework for the web site on both my old and new laptop is 4.6.1. Both are also using VS.NET 2019.
Does anyone have any ideas on what the issue could be? Thanks.