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

Publish Visual Studio Extension: Publish Fails in Azure DevOps with Unhandled Exception on Windows-2022 Agent #706

Closed
psxvoid opened this issue Nov 22, 2023 · 5 comments

Comments

@psxvoid
Copy link

psxvoid commented Nov 22, 2023

Additional context

Hi,

I've tried to deploy (publish) my extension in Azure DevOps pipeline but the deployment failed during the publishing. Though, I see ##[error]Error: Login failed. output in the logs, it seems like the problem is not related to the login (explained why below). Here is the screenshot of the log output:

image

Please, notice:

  1. I'm using windows-2022 build agent (windows-latest produces the same log).
  2. The extension is able to login correctly because we can see 2023-11-22T11:00:57.1387384Z VSSDK: information VsixPub0041 : Publisher 'XYZ' is now logged-in. line in the log output.
  3. The error most likely is caused by Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Memory which we can see on the screenshot.
  4. Extension Version: 4.3.94

Also, I've tried to publish the extension from my local machine with the same PAT, and it was successful:

image

@jessehouwing
Copy link
Collaborator

jessehouwing commented Nov 22, 2023

I'm guessing it's a bug in Visual Studio 17.8 which was just released to the hosted agents. The fact that your machine works with 17.7 only strengthens my suspicion...

Can you report it over at the Visual Studio Developer Community so the Visual Studio team can have a look?

https://developercommunity.visualstudio.com/VisualStudio?q=vsixpublisher&sort=newest

For now I recommend to run your publish step from windows-2019. Which should not have been updated to 17.8.

@psxvoid
Copy link
Author

psxvoid commented Nov 22, 2023

I believe you are correct, because somebody already submitted a similar issue at the Visual Studio Developer Community:

Unable-to-publish-to-marketplace

The issue can be closed then, thanks @jessehouwing

@jessehouwing
Copy link
Collaborator

jessehouwing commented Nov 22, 2023

Lets leave it open for others to find until this functionality has been restored on the hosted agents.

@jessehouwing jessehouwing pinned this issue Nov 22, 2023
@50Wliu
Copy link
Member

50Wliu commented Jan 3, 2024

I'm hitting this too, but I'm not convinced the issue @psxvoid listed is the same. In that issue, they at least get far enough that the publish can spit out a warning (VsixPub0029). Here it just seems to crash.
I created a new Developer Community bug here: https://developercommunity.visualstudio.com/t/VsixPublisher-crashes-with-SystemIOFil/10552685?port=1025&fsid=0bb568d8-4630-497b-9b5e-cbff7d965a07

@50Wliu
Copy link
Member

50Wliu commented Feb 29, 2024

FYI, this is fixed for me :).

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

No branches or pull requests

3 participants