[MS.Build] add test regarding item condition and target-generated property.
[MS.Build] when building MSBuild task, inherit properties.

This makes difference when the build has started from a solution especially
via command line with /p option. Those command-line-passed properties need
to be inherited to each project, but they weren't.
xbuild worked fine here.