Fix inline code task to work on all versions of MSBuild