From dc6e717693c00f0664361eab8ce31edb3ab7b551 Mon Sep 17 00:00:00 2001 From: Aishwarya Bhandari <37918412+aishwaryabh@users.noreply.github.com> Date: Thu, 19 Dec 2024 22:49:32 +0000 Subject: [PATCH] adding macOs and linux --- .../V4Format/V4FormatFeedEntryUpdater.cs | 114 +++++++++--------- 1 file changed, 57 insertions(+), 57 deletions(-) diff --git a/GenerateToolingFeed/V4Format/V4FormatFeedEntryUpdater.cs b/GenerateToolingFeed/V4Format/V4FormatFeedEntryUpdater.cs index 53391b76..a2889aa8 100644 --- a/GenerateToolingFeed/V4Format/V4FormatFeedEntryUpdater.cs +++ b/GenerateToolingFeed/V4Format/V4FormatFeedEntryUpdater.cs @@ -1,58 +1,58 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.CompilerServices; -using System.Security.Cryptography; -using Newtonsoft.Json.Linq; - -namespace GenerateToolingFeed.V4Format -{ - internal class V4FormatFeedEntryUpdater : IFeedEntryUpdater - { - private readonly string _tag; - - private readonly IDictionary _dotnetToItemTemplates = new Dictionary() - { - { "net9-isolated", "Microsoft.Azure.Functions.Worker.ItemTemplates.NetCore" }, - { "net8", "Microsoft.Azure.WebJobs.ItemTemplates" }, - { "net8-isolated", "Microsoft.Azure.Functions.Worker.ItemTemplates.NetCore" }, - { "net7-isolated", "Microsoft.Azure.Functions.Worker.ItemTemplates.NetCore" }, - { "net6-isolated", "Microsoft.Azure.Functions.Worker.ItemTemplates.NetCore"}, - { "net6", "Microsoft.Azure.WebJobs.ItemTemplates" }, - { "net5-isolated", "Microsoft.Azure.Functions.Worker.ItemTemplates"}, - { "netcore3", "Microsoft.Azure.WebJobs.ItemTemplates" }, - { "netcore2", "Microsoft.Azure.WebJobs.ItemTemplates" }, - { "netframework", "Microsoft.Azure.WebJobs.ItemTemplates" }, - { "netfx-isolated", "Microsoft.Azure.Functions.Worker.ItemTemplates.NetFx" } - }; - - private readonly IDictionary _dotnetToProjectTemplates = new Dictionary() - { - { "net9-isolated", "Microsoft.Azure.Functions.Worker.ProjectTemplates" }, - { "net8", "Microsoft.Azure.WebJobs.ProjectTemplates" }, - { "net8-isolated", "Microsoft.Azure.Functions.Worker.ProjectTemplates" }, - { "net7-isolated", "Microsoft.Azure.Functions.Worker.ProjectTemplates" }, - { "net6-isolated", "Microsoft.Azure.Functions.Worker.ProjectTemplates" }, - { "net6", "Microsoft.Azure.WebJobs.ProjectTemplates" }, - { "net5-isolated", "Microsoft.Azure.Functions.Worker.ProjectTemplates" }, - { "netcore3", "Microsoft.Azure.WebJobs.ProjectTemplates" }, - { "netcore2", "Microsoft.Azure.WebJobs.ProjectTemplates" }, - { "netframework", "Microsoft.Azure.WebJobs.ProjectTemplates" }, - { "netfx-isolated", "Microsoft.Azure.Functions.Worker.ProjectTemplates" } - }; - - private static readonly IDictionary _linkSuffix = new Dictionary() - { - { - "v0", "_inproc" - } - }; - - private static readonly IDictionary> FilteredOSByTag = new Dictionary>() - { - { "v0", new List {"Windows" } }, - { "v4", new List {"Windows", "MacOs", "Linux"} } +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.CompilerServices; +using System.Security.Cryptography; +using Newtonsoft.Json.Linq; + +namespace GenerateToolingFeed.V4Format +{ + internal class V4FormatFeedEntryUpdater : IFeedEntryUpdater + { + private readonly string _tag; + + private readonly IDictionary _dotnetToItemTemplates = new Dictionary() + { + { "net9-isolated", "Microsoft.Azure.Functions.Worker.ItemTemplates.NetCore" }, + { "net8", "Microsoft.Azure.WebJobs.ItemTemplates" }, + { "net8-isolated", "Microsoft.Azure.Functions.Worker.ItemTemplates.NetCore" }, + { "net7-isolated", "Microsoft.Azure.Functions.Worker.ItemTemplates.NetCore" }, + { "net6-isolated", "Microsoft.Azure.Functions.Worker.ItemTemplates.NetCore"}, + { "net6", "Microsoft.Azure.WebJobs.ItemTemplates" }, + { "net5-isolated", "Microsoft.Azure.Functions.Worker.ItemTemplates"}, + { "netcore3", "Microsoft.Azure.WebJobs.ItemTemplates" }, + { "netcore2", "Microsoft.Azure.WebJobs.ItemTemplates" }, + { "netframework", "Microsoft.Azure.WebJobs.ItemTemplates" }, + { "netfx-isolated", "Microsoft.Azure.Functions.Worker.ItemTemplates.NetFx" } + }; + + private readonly IDictionary _dotnetToProjectTemplates = new Dictionary() + { + { "net9-isolated", "Microsoft.Azure.Functions.Worker.ProjectTemplates" }, + { "net8", "Microsoft.Azure.WebJobs.ProjectTemplates" }, + { "net8-isolated", "Microsoft.Azure.Functions.Worker.ProjectTemplates" }, + { "net7-isolated", "Microsoft.Azure.Functions.Worker.ProjectTemplates" }, + { "net6-isolated", "Microsoft.Azure.Functions.Worker.ProjectTemplates" }, + { "net6", "Microsoft.Azure.WebJobs.ProjectTemplates" }, + { "net5-isolated", "Microsoft.Azure.Functions.Worker.ProjectTemplates" }, + { "netcore3", "Microsoft.Azure.WebJobs.ProjectTemplates" }, + { "netcore2", "Microsoft.Azure.WebJobs.ProjectTemplates" }, + { "netframework", "Microsoft.Azure.WebJobs.ProjectTemplates" }, + { "netfx-isolated", "Microsoft.Azure.Functions.Worker.ProjectTemplates" } + }; + + private static readonly IDictionary _linkSuffix = new Dictionary() + { + { + "v0", "_inproc" + } + }; + + private static readonly IDictionary> FilteredOSByTag = new Dictionary>() + { + { "v0", new List {"Windows", "MacOs", "Linux" } }, + { "v4", new List {"Windows", "MacOs", "Linux"} } }; public V4FormatFeedEntryUpdater(string tag) @@ -156,5 +156,5 @@ private void UpdateDotnetTemplatesToLatest(IDictionary