I need to change the .NET Framework Version of my Sharepoint Project from 3.5 to 4.0.
The project is generated with VisualStudio2010, Sharepoint version is also 2010. I already found this blogpost regarding this topic, but it doesnt work.
.NET 4.0 is installed on the development machine but I’m not able to select the framework in the target-framework tab at the project settings:

SharePoint 2010 does not support .NET 4.0.
If you really have to connect a .NET 4.0 application to SharePoint, you can use a web service to communicate. But you won’t be able to write a .NET 4.0 WebPart or a similar SharePoint artifact.