change to target framework 4.5 and update the nuget packages
fix obsolete usages