Search code examples
c#.netvisual-studioslowcheetah

Path is not a valid JDT verb


Trying to use SlowCheetah by Microsoft to introduce transforms of my appSettings file to one per build. Whenever I build though Visual Studio is giving me this error

path is not a valid JDT verb

My json files

appSettings.json

"Connectivity": {
    "Host": "original"
  }

appSettings.Debug.json

{
  "@jdt.path" : "Connectivity.Host",
  "@jdt.value": "something"
}

I don't exactly understand what the problem is and searching online wasn't much help.


Solution

  • As pointed out by canton7 in the comments of the question, using transformation verbs at all but in fact, just adding

      {
        "Connectivity": {
          "Host": "something"
        }
      }
    

    and the value will be replaced in the main appSettings.json file during build. Link to Github docs explaining the default transformations.