diff options
-rw-r--r-- | Mono.Addins/Mono.Addins.Description/AddinDescription.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Mono.Addins/Mono.Addins.Description/AddinDescription.cs b/Mono.Addins/Mono.Addins.Description/AddinDescription.cs index 4d3bf62..f3220d0 100644 --- a/Mono.Addins/Mono.Addins.Description/AddinDescription.cs +++ b/Mono.Addins/Mono.Addins.Description/AddinDescription.cs @@ -985,6 +985,23 @@ namespace Mono.Addins.Description iconAsset.SetAttribute ("Addressable", "true"); assetsEl.AppendChild (iconAsset); } + + var propertyToAssetTypeMappings = new Dictionary<string, string>{ + {"VisualStudio.License", "Microsoft.VisualStudio.Services.Content.License"}, + {"VisualStudio.Details", "Microsoft.VisualStudio.Services.Content.Details"}, + {"VisualStudio.Changelog", "Microsoft.VisualStudio.Services.Content.Changelog"}, + }; + + foreach (var mapping in propertyToAssetTypeMappings) { + if (!string.IsNullOrEmpty (Properties.GetPropertyValue (mapping.Key))) { + var asset = vsixDoc.CreateElement ("Asset"); + asset.SetAttribute ("Type", mapping.Value); + asset.SetAttribute ("Path", icon); + asset.SetAttribute ("Addressable", "true"); + assetsEl.AppendChild (asset); + } + } + packageManifestEl.AppendChild (assetsEl); return vsixDoc; |