我在一个网络项目中实现了SlowCheetah。我正在运行NuGet v2.7,但仍然使用启用包恢复。我在AntHillPro中运行一个构建工作流,它首先运行NuGet包还原,然后在解决方案上运行MSBuild。包还原步骤表示它成功地重新安装了SLowCheetah,但是MSBuild步骤显示除了web.config之外,没有执行配置文件的转换过程。我试着切换到v2.7 NuGet命令行还原,但这没有什么改变。我带着回来了,但是我不知道从哪里开始,也不知道如何调试这个问题。我发誓几周前它还能正常工作。不确定我是有SlowCheetah问题还是NuGet问题。我如何调试这个?任何帮助都是非常感谢的。
发布于 2015-12-22 08:15:26
我也遇到了类似的问题,结果发现在合并过程中,在我的csproj文件中,PropertyGroup (标记为SlowCheetah)下降了Import。
应该是这样的
<PropertyGroup Label="SlowCheetah">
<SlowCheetahToolsPath>$([System.IO.Path]::GetFullPath( $(MSBuildProjectDirectory)\..\packages\SlowCheetah.2.5.10.3\tools\))</SlowCheetahToolsPath>
<SlowCheetah_EnableImportFromNuGet Condition=" '$(SC_EnableImportFromNuGet)'=='' ">true</SlowCheetah_EnableImportFromNuGet>
<SlowCheetah_NuGetImportPath Condition=" '$(SlowCheetah_NuGetImportPath)'=='' ">$([System.IO.Path]::GetFullPath( $(MSBuildProjectDirectory)\Properties\SlowCheetah\SlowCheetah.Transforms.targets ))</SlowCheetah_NuGetImportPath>
<SlowCheetahTargets Condition=" '$(SlowCheetah_EnableImportFromNuGet)'=='true' and Exists('$(SlowCheetah_NuGetImportPath)') ">$(SlowCheetah_NuGetImportPath)</SlowCheetahTargets>
</PropertyGroup>然后
<Import Project="$(SlowCheetahTargets)" Condition="Exists('$(SlowCheetahTargets)')" Label="SlowCheetah" />这里是为什么元素的顺序在构建文件中非常重要的原因。希望它能帮上忙
https://stackoverflow.com/questions/19788967
复制相似问题