-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get-VstsTfsClientCredentials -OMDirectory $dir
needs binding redirect for NewtonsoftJson on VS2019
#580
Comments
Updating the function with the same assembly resolver fixes the issue. This problem may need a more global fix?
|
Not a question. A bug! |
@jessehouwing sorry for the slow response here! Any chance you want to add a PR (with the changes you mentioned above) - I think it makes sense.
Any thoughts on what that might be? I'm open to it, but also pretty comfortable just getting this instance of the problem fixed, I haven't seen any other issues |
The more global fix could be to put this code into a central function, the Client OM resolve code seems to live in multiple places at the moment. I'm personally fine with this solution but future issues in this bit of code may again go unnoticed in the other places or vice versa. |
Environment
azure-pipelines-task-lib version: 0.11 PowerShell
Issue Description
When calling get-vststfsclientcredentials on a VS2019 hosted agent, it fails to load with a newtonsoft.json binding issue.
It looks like other functions were patched with a assembly resolver. But this function fails.
It works when pointing to a VS2015OM or a VS2017 OM. It fails when pointing to a VS2019OM.
Expected behaviour
credentials are returned.
Actual behaviour
The text was updated successfully, but these errors were encountered: