clariuslabs / TransformOnBuild

Transform Text Templates On Build
Apache License 2.0
48 stars 17 forks source link

Transform skipped due to false condition #36

Closed mperrenoud closed 7 years ago

mperrenoud commented 7 years ago

I installed the NuGet package, but on build it wasn't working. I checked the logs and found these two error messages.

Task "Error" skipped, due to false condition; (!Exists('$(_TransformExe)')) was evaluated as (!Exists('C:\Program Files (x86)\Common Files\Microsoft Shared\TextTemplating\14.0\TextTransform.exe')).

Task "Exec" skipped, due to false condition; ('%(_TextTransform.Identity)' != '') was evaluated as ('' != '').

Now, the _TextTransformExe was set:

_TransformExe = C:\Program Files (x86)\Common Files\Microsoft Shared\TextTemplating\14.0\TextTransform.exe

Later on the TextTransformPath was set:

TextTransformPath = C:\Program Files (x86)\Common Files\Microsoft Shared\TextTemplating\14.0\TextTransform.exe

I verified the path C:\Program Files (x86)\Common Files\Microsoft Shared\TextTemplating\14.0\ and it in fact contains the TextTransform.exe file.

What did I do wrong?

mperrenoud commented 7 years ago

I figured it out; the files were set to Content instead of None.