【问题标题】:SlowCheetah transform not working on jenkins build server - vs2010 - different drivesSlowCheetah 转换在詹金斯构建服务器上不起作用 - vs2010 - 不同的驱动器
【发布时间】:2013-08-22 17:15:37
【问题描述】:

我已将慢速 Cheetah 添加到我正在使用的 2 个解决方案中。当我使用它而不是在构建服务器上时,第一个会转换。当我构建它或在构建服务器上时,第二个不会转换。

总的来说,当谈到如何让猎豹缓慢工作时,我有点困惑。我已经阅读了 Sayed 的几个链接,并且正在努力寻找我应该关注的链接。我已将 2.5.5 版添加到这两个项目中。

  1. http://sedodream.com/2012/12/24/SlowCheetahBuildServerSupportUpdated.aspx - 这个说我需要先构建一个 packagerestore.proj 文件来恢复 nuget 包。但是,当我尝试此操作时出现路径错误...我收到此错误 - 错误 MSB4019:导入的项目“E:\jenkins\CAREweb.net (DEV APP BUILD)\workspace\development\systems\CARE\apps.nuget\ nuget.targets”没有找到。

  2. http://sedodream.com/2011/12/12/SlowCheetahXMLTransformsFromACIServer.aspx - 这是我想关注的,因为我可以将 ci 服务器上的文件放在运行 jenkins 服务的用户的 localappdata 文件夹中。为团队中的每个人以及每个构建解决一次,但它并没有改变,我似乎没有遇到任何错误。不确定是否有区别,但我们正在 E: 驱动器上构建,而 localappdata 文件夹位于 c: 驱动器上。

我已经阅读了他关于 Slow Cheetah 的许多其他帖子,并且我查看了 stackoverflow 中的一堆答案,但还没有找到一个可以解决我的问题的答案。

我们使用的是 Visual Studio 2010。从命令行在 Jenkins 上构建项目文件。我敢肯定,如果我能让一种解决方案起作用,那么我应该能够使另一种解决方案起作用,但我目前没有取得任何进展。

更新

这些也是我的项目文件中相关的慢猎豹部分。

<PropertyGroup Label="SlowCheetah">
    <SlowCheetah_EnableImportFromNuGet Condition=" '$(SC_EnableImportFromNuGet)'=='' ">true</SlowCheetah_EnableImportFromNuGet>
    <SlowCheetah_NuGetImportPath Condition=" '$(SlowCheetah_NuGetImportPath)'=='' ">$([System.IO.Path]::GetFullPath( $(MSBuildProjectDirectory)\..\packages\SlowCheetah.2.5.5\tools\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" />

【问题讨论】:

    标签: transform slowcheetah


    【解决方案1】:

    尝试使用 2.5.10 版本。我已经修改了 SlowCheetah 以将 .targets 文件添加到项目中。现在不需要额外的配置。更多信息请访问https://github.com/sayedihashimi/slow-cheetah/issues/113

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-09-04
      • 1970-01-01
      • 2012-11-01
      • 2016-05-26
      • 1970-01-01
      • 2013-04-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多