我需要创建多个/ testcontainer:参数来提供给exec的MsTest的任务.
我有以下内容:
<ItemGroup>
<TestFiles Include="$(ProjectPath)\**\UnitTest.*.dll" />
</ItemGroup>
Run Code Online (Sandbox Code Playgroud)
对于TestFiles中的每个匹配,我想构建一个像这样的字符串:
"/testcontainer:UnitTest.SomeLibrary1.dll"
"/testcontainer:UnitTest.SomeLibrary2.dll"
"/testcontainer:UnitTest.SomeLibrary3.dll"
Run Code Online (Sandbox Code Playgroud)
我试图使用MSBuild的内部而不必创建自定义任务,这可能吗?
TIA