microsoft / tfs-cli

Cross-platform CLI for Microsoft Team Foundation Server and Visual Studio Team Services
MIT License
372 stars 132 forks source link

.woff2 extension missing in VsixManifestBuilder.CONTENT_TYPE_MAP #467

Open mmaitre314 opened 2 months ago

mmaitre314 commented 2 months ago

When creating the vsix package of an ADO extension, the CLI warns that .woff2 is missing a content type. It looks like this should be added in VsixManifestBuilder.CONTENT_TYPE_MAP, likely mapped to font/woff2.

> npx tfx extension create --manifests azure-devops-extension-dev.json --no-color
TFS Cross Platform Command Line Interface v0.17.0
Copyright Microsoft Corporation
warning: Could not determine content type for extension .woff2. Defaulting to application/octet-stream. To override this, add a contentType property to this file entry in the manifest.

The warning asks to set the contentType property in the files section but it does not seem that wildcards can be used there.

DmitriiBobreshev commented 2 months ago

Hi @mmaitre314, thank you for the feedback, we will take a look