We are upgrading from SharePoint 2010 to 2019 (on premises), and I need to test the web parts I have developed. When I try to recompile in Visual Studio 2019, I get the error:
The required version of SharePoint Foundation or SharePoint Server is not installed on this system. The target version of the SharePoint project is 2010.
I have then tried to change the target framework to 4.7.2, but that didn't help. Please tell me how to change the setup. Thank you so much in advance.