microsoft / MSIX-PackageSupportFramework

The Package Support Framework (PSF) is a kit for applying compatibility fixes to packaged desktop applications.
MIT License
114 stars 57 forks source link

The ability to use a XML config file rather than JSON #196

Open RMITBLOG opened 2 years ago

RMITBLOG commented 2 years ago

As MSIX uses XML for the manifest. Would it be possible to support XML with the Package support framework for the config file? So that both the manifest and psf config file are in the same format/language. I note that this repo has an XML conversion template to JSON.

dhoehna commented 2 years ago

Hi @RMITBLOG,

While PSF does not support XML directly, it is possible to write a configuration file in XML and have it transformed into JSON. PSF comes with msxsl.exe and a format file that will transform XML to json.

https://github.com/microsoft/MSIX-PackageSupportFramework/tree/master/xmlToJsonConverter

RMITBLOG commented 2 years ago

HI @dhoehna

I am aware of the XLM configuration and conversion tool. My leading point is having to use msxsl.exe is an extra step and to use two languages/formats is messy. in my opinion, a good PR move would be to standardise to either JSON or XML for the Manifest and PSF config file.

Hi @RMITBLOG,

While PSF does not support XML directly, it is possible to write a configuration file in XML and have it transformed into JSON. PSF comes with msxsl.exe and a format file that will transform XML to json.

https://github.com/microsoft/MSIX-PackageSupportFramework/tree/master/xmlToJsonConverter

dhoehna commented 2 years ago

My leading point is having to use msxsl.exe is an extra step

Ah. Yes. Very true. It is an extra step. Plus, updating the format file for every new release is tedious. I do understand where you are coming from.

@ravishroshanms XML is used by IT pros and developers. Going forward, it might be a good idea to have PSF ingest XML configuration files.