我需要创建多个 /testcontainer: 参数来输入执行的 MsTest 的任务。
我有以下内容:
<ItemGroup>
<TestFiles Include="$(ProjectPath)\**\UnitTest.*.dll" />
</ItemGroup>
对于TestFiles中的每个匹配项,我想构建一个字符串,如下所示:
"/testcontainer:UnitTest.SomeLibrary1.dll"
"/testcontainer:UnitTest.SomeLibrary2.dll"
"/testcontainer:UnitTest.SomeLibrary3.dll"
我正在尝试使用 MSBuild 的内部而不必创建自定义任务,这可能吗?
TIA