msbuild needs AllowUnsafeBlocks=true + set /tv:3.5 for 2.0 frameworks ( it fails to build with 2.0 tv )