Change method of setting TargetFrameworkVersion to fix Mono builds