This blog content is compiled by @Ahetejaz from Azure DevOps CSS support team.
Recently, he helped a customer in resolving an issue where an extension upload threw an error below in Azure DevOps server.
Upload Error: The extension package size ‘26272573 bytes’ exceeds the maximum package size ‘26214400 bytes’
In Azure DevOps server, there is a limit for package size of ~26 MB. When one tries to upload an extension with package size beyond 26 mb in marketplace, they see a similar error as below:
How to resolve?
Increase the limit by running below query against the AzureDevOps_Configuration. The below query increases the limit to 30 MB.
DECLARE @keyvalues dbo.typ_keyvaluepairstringtablenullable;
INSERT @keyvalues
VALUES ('#\Configuration\Service\Gallery\LargeExtensionUpload\MaxPackageSizeMB\', '30')
exec prc_UpdateRegistry 1, @keyvalues
To develop an extension, refer the official documentation below:
https://docs.microsoft.com/en-us/azure/devops/extend/get-started/node?view=azure-devops-2020
Cheers!!
Ahmed
Posted at https://sl.advdat.com/31dXcsJ