Skip to content
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

[BUG]: Missing dependencies in externals vstsom folder #5011

Open
2 of 4 tasks
andyfisher100 opened this issue Oct 8, 2024 · 1 comment
Open
2 of 4 tasks

[BUG]: Missing dependencies in externals vstsom folder #5011

andyfisher100 opened this issue Oct 8, 2024 · 1 comment

Comments

@andyfisher100
Copy link

andyfisher100 commented Oct 8, 2024

What happened?

At some point between version v3.234.0 and v3.245 of the agent, the version of the Azure DevOps Client SDK, which exists in the externals\vstsom folder, was bumped from v15 to v16. In v16 there seems to be some additional dependencies that are missing which v15 did not require

In the Azure Pipeline Task lib there is a script that can be run ro check which dlls are actually required to be bundled with any task you may develop. This script used is the following https://github.com/microsoft/azure-pipelines-task-lib/blob/master/powershell/VstsTaskSdk/ServerOMFunctions.ps1

For our task we require the dll Microsoft.TeamFoundation.Build2.WebApi.dll. This dll then has the following dependencies

  1. Microsoft.VisualStudio.Service.WebApi.dll ✅
  2. System.IdentityModel.Tokens.Jwt.dll ✅
  3. Microsoft.IdentityModel.Logging.dll ❌
    Microsoft.IdentityModel.Tokens.dll ❌

So the main issue comes with the added dependency on System.IdentityModel.Tokens.Jwt.dll which then requires its own 2 additional dependencies.

I managed to work around this in my custom tasks pipeline by copying the files from the bin directory of the agent, as it appears the agent itself requires these dependencies too but they are actually bundled

Im not sure if there are more additional dependencies other than the two that I hit in my custom task development

Versions

v3.245

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

No response

Version controll system

No response

Relevant log output

No response

@ismayilov-ismayil
Copy link
Contributor

Hi @andyfisher100, thanks for reporting! We are working on more prioritized issues at the moment, but will get back to this one soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants