SteveEdson / bump-client-dependency

A simple script to increase the version number in `ClientDependency.config` files, commonly found in Umbraco CMS projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Corrupt Client Dependency Config File

0Neji opened this issue · comments

Nice work on this - now using this on a couple of sites and works a treat, I did run into one issue however with a fresh installation of Umbraco.

The (client dependency version out-of-the-box is 1. So when I ran this it bumped up the number just fine but it also bumped the XML version number to 2.0

It's the first line:

<?xml version="1.0" encoding="utf-8"?>

Which gets changed to:

<?xml version="2.0" encoding="utf-8"?>

I also tested this when my client dependency version was 8 at it bumped the encoding from utf-8 to utf-9 - again, on the first line of the file:

<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-9"?>

Easy to fix by starting with a different version number but thought I'd raise the issue as it'll be a little more friendly to use with a fresh Umbraco installation.

Thanks!

Thanks! Should be fixed now if you could test again please?