Is there a utils extension that allows you to modify the JSON file? #7711
Unanswered
akuznetsov-congree
asked this question in
Questions
Replies: 3 comments 2 replies
|
My WiX extension supports it- https://www.nuget.org/packages/PanelSwWixExtension4 (WiX v4) or https://www.nuget.org/packages/PanelSwWixExtension (WiX v3): |
1 reply
1 reply
|
Late to this, but for anyone landing here from a search: I maintain <PackageReference Include="WixJsonFileExtension" Version="7.1.0" /><Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
xmlns:Json="http://schemas.hegsie.com/wix/JsonExtension">
...
<Component Id="AppConfig">
<File Id="AppSettings" Name="appsettings.json" Source="appsettings.json" />
<Json:JsonFile Id="SetConnection" File="[#AppSettings]"
ElementPath="$.ConnectionStrings.Default"
Value="[DB_CONNECTION]" Action="setValue" />
<Json:JsonFile Id="SetPort" File="[#AppSettings]"
ElementPath="$.Kestrel.Port" Value="[PORT]" ValueType="number" />
</Component>Paths are JSONPath, changes are rolled back if the install fails, and there are actions for |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Wix has a Util extension that allows you to work with XML files. But a modern application contains many json files. Is there any extension for Wix 4 that is responsible for changing the JSON file? Maybe it makes sense to add an extension to Utils for working with json?
All reactions