Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们正在使用一个项目文件,然后调用 MSBuild 任务。例如,
<Target Name="Clean"> <MSBuild Targets="Clean" Projects="@(Solution)"/> </Target>
在项目文件中,我现在定义了一个要传递给 MSBuild 任务的变量。
我自己发现的!这有效:
<Target Name="Clean"> <MSBuild Targets="Clean" Projects="@(Solution)" Properties="Key=Value"/> </Target>