SlowCheetah not transforming file on build

后端 未结 7 2107
青春惊慌失措
青春惊慌失措 2020-12-25 11:35

I have a project I am trying to use SlowCheetah for. I have created my config file (Test.web.config) and all the transformations I want to use (Debug_Mock.config, Debug_SQL.

7条回答
  •  旧巷少年郎
    2020-12-25 11:57

    For me I found the issue was that the slow cheetah property group in the config file was below the section where it checked if it existed.

    So the fix was simply to move the property group above that line somewhere which would allow the transform to run as expected.

    Put this:

    
      $([System.IO.Path]::GetFullPath( $(MSBuildProjectDirectory)\..\packages\SlowCheetah.2.5.10.3\tools\))
      true
      $([System.IO.Path]::GetFullPath( $(MSBuildProjectDirectory)\Properties\SlowCheetah\SlowCheetah.Transforms.targets ))
      $(SlowCheetah_NuGetImportPath)
    
    

    Above this:

    
    

提交回复
热议问题