Description
Issue Description
When the XslTransformation task is called such that the XmlInputPaths and OutputPaths parameters do not have the same number of items, it fails with an MSB3094 error that incorrectly references the XmlContent parameter.
Steps to Reproduce
Build this project:
<Project>
<Target Name="Main">
<XslTransformation XmlInputPaths="dummy.xml" XslInputPath="dummy.xslt" OutputPaths="" />
</Target>
</Project>
(The dummy.xml and dummy.xslt files need not exist.)
Expected Behavior
error MSB3094: "OutputPaths" refers to 0 item(s), and "XmlInputPaths" refers to 1 item(s).
They must have the same number of items.
Actual Behavior
error MSB3094: "XmlContent" refers to 0 item(s), and "XmlInputPaths" refers to 1 item(s).
They must have the same number of items.
Analysis
msbuild/src/Tasks/XslTransformation.cs
Lines 114 to 119 in 51df476
The bug has been there ever since the first public commit.
Versions & Configurations
MSBuild 17.6.0-preview-23108-10+51df47643 from .NET SDK 8.0.100-preview.1.23115.2