From cd590428062bffe556602e6b0ff634f420abbe83 Mon Sep 17 00:00:00 2001
From: LyubkaNikolova <lnikolov@progress.com>
Date: Mon, 11 Aug 2025 09:29:52 +0300
Subject: [PATCH 1/6] bump tfm version of

---
 .../RemoveHtmlExtensionFromApiRefSitemap.csproj           | 2 +-
 _tools/RemoveHtmlExtensionFromApiRefSitemap/global.json   | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/_tools/RemoveHtmlExtensionFromApiRefSitemap/RemoveHtmlExtensionFromApiRefSitemap.csproj b/_tools/RemoveHtmlExtensionFromApiRefSitemap/RemoveHtmlExtensionFromApiRefSitemap.csproj
index 41f1d5a..a269962 100644
--- a/_tools/RemoveHtmlExtensionFromApiRefSitemap/RemoveHtmlExtensionFromApiRefSitemap.csproj
+++ b/_tools/RemoveHtmlExtensionFromApiRefSitemap/RemoveHtmlExtensionFromApiRefSitemap.csproj
@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <OutputType>Exe</OutputType>
-    <TargetFramework>net6.0</TargetFramework>
+    <TargetFramework>net8.0</TargetFramework>
   </PropertyGroup>
 
 </Project>
diff --git a/_tools/RemoveHtmlExtensionFromApiRefSitemap/global.json b/_tools/RemoveHtmlExtensionFromApiRefSitemap/global.json
index b7aed27..6beaa66 100644
--- a/_tools/RemoveHtmlExtensionFromApiRefSitemap/global.json
+++ b/_tools/RemoveHtmlExtensionFromApiRefSitemap/global.json
@@ -1,6 +1,6 @@
 {
-    "sdk": {
-        "version": "6.0.0",
-        "rollForward": "latestMinor"
-    }
+  "sdk": {
+    "version": "8.0.412",
+    "rollForward": "latestMinor"
+  }
 }

From 3987a20a14355fad41da6a0710b2cf78fc9f1360 Mon Sep 17 00:00:00 2001
From: LyubkaNikolova <lnikolov@progress.com>
Date: Mon, 11 Aug 2025 09:50:27 +0300
Subject: [PATCH 2/6] update args.length

---
 _tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/_tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs b/_tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs
index 959a95e..6009faa 100644
--- a/_tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs
+++ b/_tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs
@@ -8,7 +8,7 @@ class Program
     {
         static void Main(string[] args)
         {
-            if(args.Length < 2)
+            if(args.Length < 1)
             {
                 throw new ArgumentNullException("You must provide a path to the drop folder of the API reference so we can alter the sitemap.xml file in it.");
             }

From 89e3c4d703284f98358c7cc690094f7fddf58b42 Mon Sep 17 00:00:00 2001
From: LyubkaNikolova <lnikolov@progress.com>
Date: Mon, 11 Aug 2025 10:14:08 +0300
Subject: [PATCH 3/6] turn back the initial target framework

---
 _tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs          | 2 +-
 .../RemoveHtmlExtensionFromApiRefSitemap.csproj                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/_tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs b/_tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs
index 6009faa..959a95e 100644
--- a/_tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs
+++ b/_tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs
@@ -8,7 +8,7 @@ class Program
     {
         static void Main(string[] args)
         {
-            if(args.Length < 1)
+            if(args.Length < 2)
             {
                 throw new ArgumentNullException("You must provide a path to the drop folder of the API reference so we can alter the sitemap.xml file in it.");
             }
diff --git a/_tools/RemoveHtmlExtensionFromApiRefSitemap/RemoveHtmlExtensionFromApiRefSitemap.csproj b/_tools/RemoveHtmlExtensionFromApiRefSitemap/RemoveHtmlExtensionFromApiRefSitemap.csproj
index a269962..41f1d5a 100644
--- a/_tools/RemoveHtmlExtensionFromApiRefSitemap/RemoveHtmlExtensionFromApiRefSitemap.csproj
+++ b/_tools/RemoveHtmlExtensionFromApiRefSitemap/RemoveHtmlExtensionFromApiRefSitemap.csproj
@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <OutputType>Exe</OutputType>
-    <TargetFramework>net8.0</TargetFramework>
+    <TargetFramework>net6.0</TargetFramework>
   </PropertyGroup>
 
 </Project>

From 6a2e6a351396e66bc336c39168179039dcf25414 Mon Sep 17 00:00:00 2001
From: LyubkaNikolova <lnikolov@progress.com>
Date: Mon, 11 Aug 2025 10:18:49 +0300
Subject: [PATCH 4/6] bump tfm

---
 .../RemoveHtmlExtensionFromApiRefSitemap.csproj                 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/_tools/RemoveHtmlExtensionFromApiRefSitemap/RemoveHtmlExtensionFromApiRefSitemap.csproj b/_tools/RemoveHtmlExtensionFromApiRefSitemap/RemoveHtmlExtensionFromApiRefSitemap.csproj
index 41f1d5a..a269962 100644
--- a/_tools/RemoveHtmlExtensionFromApiRefSitemap/RemoveHtmlExtensionFromApiRefSitemap.csproj
+++ b/_tools/RemoveHtmlExtensionFromApiRefSitemap/RemoveHtmlExtensionFromApiRefSitemap.csproj
@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <OutputType>Exe</OutputType>
-    <TargetFramework>net6.0</TargetFramework>
+    <TargetFramework>net8.0</TargetFramework>
   </PropertyGroup>
 
 </Project>

From 7e1f03de79d7f2cba1e89af1c5ab83a534ddadaf Mon Sep 17 00:00:00 2001
From: LyubkaNikolova <lnikolov@progress.com>
Date: Mon, 11 Aug 2025 10:32:52 +0300
Subject: [PATCH 5/6] add debug info

---
 _tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/_tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs b/_tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs
index 959a95e..c1b2a2e 100644
--- a/_tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs
+++ b/_tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs
@@ -15,6 +15,8 @@ static void Main(string[] args)
             string pathToApiRefSitemap = Path.Combine(args[0], "sitemap.xml");
             if (!File.Exists(pathToApiRefSitemap))
             {
+                Console.WriteLine($"Checking: {pathToApiRefSitemap}");
+                Console.WriteLine($"Current Directory: {Directory.GetCurrentDirectory()}");
                 throw new FileNotFoundException("API Ref sitemap file not found in the target folder");
             }
             string sitemapText = File.ReadAllText(pathToApiRefSitemap);

From 768d7206414104da6cf203d8a7cff59566e0eab5 Mon Sep 17 00:00:00 2001
From: LyubkaNikolova <lnikolov@progress.com>
Date: Mon, 11 Aug 2025 10:57:57 +0300
Subject: [PATCH 6/6] change the string args position

---
 _tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/_tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs b/_tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs
index c1b2a2e..6972d86 100644
--- a/_tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs
+++ b/_tools/RemoveHtmlExtensionFromApiRefSitemap/Program.cs
@@ -12,7 +12,7 @@ static void Main(string[] args)
             {
                 throw new ArgumentNullException("You must provide a path to the drop folder of the API reference so we can alter the sitemap.xml file in it.");
             }
-            string pathToApiRefSitemap = Path.Combine(args[0], "sitemap.xml");
+            string pathToApiRefSitemap = Path.Combine(args[1], "sitemap.xml");
             if (!File.Exists(pathToApiRefSitemap))
             {
                 Console.WriteLine($"Checking: {pathToApiRefSitemap}");
