[Microsoft.Build.Tasks] Fix a net 2.0 failure.