magic-chunks / magic-chunks-dotnetcore

Easy to use tool to config transformations for JSON, XML and YAML.
MIT License
106 stars 48 forks source link

Release variables only work with "Inline JSON" transformation type #19

Open guranto66 opened 7 years ago

guranto66 commented 7 years ago

Hello, It seems that release configuration variables in TFS 2015 only get their values replaced with "Inline JSON" transformation type. When using "JSON File", transformations do happen, but the values are not being replaced. The result web.config ends up having records like the one below.

<add key="Release" value="$(Release.ReleaseName)" />

Is that something can be fixed?

Thank you, Anton

PS. Keep up the good work.

sergeyzwezdin commented 7 years ago

@guranto66 Could you proivde full text of your source config as well as JSON transofrmations?

guranto66 commented 7 years ago

Sergey, Please see the files attached. I'm transforming web.config using web.config.json. When I copy json file content into inline field, it all works fine.

Thank you, Anton

Web.config.txt Web.config.json.txt

sergeyzwezdin commented 7 years ago

Ok, I'll check.

kharrak commented 7 years ago

@sergeyzwezdin I have the same issue with the transformations, any updates on this?

P.S. Awesome job with this build step :)

guranto66 commented 7 years ago

Sergey, Let me know if you have any plans on fixing this. Much appreciated.

Thank you, Anton

sergeyzwezdin commented 7 years ago

@guranto66 I'm quite busy right now. I'll fix once I'll have a time.

lewisveale commented 7 years ago

@sergeyzwezdin Thanks! This is a great tool. I am interested in using variables in JSON transformation files too.

jcaruso001 commented 6 years ago

Any update on this @sergeyzwezdin