【发布时间】:2017-08-08 19:47:42
【问题描述】:
我有项目的解决方案。此外,我在解决方案目录文件夹中有 msbuild 文件。
在 msbuild 文件中我有下一个代码:
<PropertyGroup Label="Build Directories">
<RootPath>$([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)'))</RootPath>
</PropertyGroup>
<ItemGroup>
<MSBuildProjectInfrastructure Include="$(RootPath)MyApp.Services.Infrastructure.sln">
<AdditionalProperties>Configuration=$(Configuration);Platform=$(Platform);</AdditionalProperties>
</MSBuildProjectInfrastructure>
</ItemGroup>
效果不好,因为我需要进入父目录才能找到MyApp.Services.Infrastructure.sln
结构:
SolutionFolder
-- MsBuildsFolder
-- ProjectFile
这里是quite similar question,但不能解决我的问题
【问题讨论】:
标签: msbuild directory parent targets