Downgraded to .NET4 and improved project configuration