Open TimThrelkeld opened 5 years ago
I see the same behavior with inconsistent tools versions being used. Any chance we can get a fix for this?
I agree with that. I just discovered that this extension is using the first version found.
As a quick workaround I has to delete the other directories to only keep the latest.
I will remove this extension as it seems it's not maintained anymore and rely on manual choco install and run.
Expected: Task uses the latest version of docfx Actual: Task uses the earliest version of docfx (though that may not always be the case)
Build output:
It appears that this function simply looks for the first directory in the tools dir returned by fs.readdirSync() that begins with 'docfx.console' and uses it. fs.readdirSync() does not define any type of ordering so it is possible that this might work sometimes. Maybe it should pay attention to version number.
Work around right now is to manually clean-up the tools directory. There might be a nuget command to clean-up old packages.