From bd2dbd2727a83ad04aabbad1893071bc7bc1c897 Mon Sep 17 00:00:00 2001
From: Arthur van de Vondervoort <arthur.vandevondervoort@vanroey.be>
Date: Tue, 19 Dec 2023 19:44:16 +0100
Subject: [PATCH 1/2] Switch to Release build

---
 .github/workflows/build.yml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 12c217b8..442a31df 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -66,12 +66,12 @@ jobs:
           ("Version(""" + ('${{ steps.create_release.outputs.tag_name }}'
           -replace "v","") + """)]") |  Out-File AssemblyInfo.cs
       - name: Build current
-        run: dotnet build --no-restore
+        run: dotnet build --no-restore --configuration Release
       - name: Upload a Build current
         uses: actions/upload-artifact@v2.2.4
         with:
           name: BusinessCentral.LinterCop.current.dll
-          path: bin/Debug/netstandard2.1/BusinessCentral.LinterCop.dll
+          path: bin/Release/netstandard2.1/BusinessCentral.LinterCop.dll
       - name: Remove a Release Asset current
         uses: flcdrg/remove-release-asset-action@v1.0.13
         env:
@@ -86,7 +86,7 @@ jobs:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         with:
           upload_url: ${{ steps.create_release.outputs.upload_url }} 
-          asset_path: bin/Debug/netstandard2.1/BusinessCentral.LinterCop.dll
+          asset_path: bin/Release/netstandard2.1/BusinessCentral.LinterCop.dll
           asset_name: BusinessCentral.LinterCop.current.dll
           asset_content_type: application/octet-stream
       - name: Clear Build output
@@ -96,13 +96,13 @@ jobs:
           Remove-Item -Path "ms-dynamics-smb.al-latest" -Force -Recurse -Verbose;
           7z x "ALLanguage_next.vsix" "-oms-dynamics-smb.al-latest" extension\bin\Analyzers -r;
       - name: Build next
-        run: dotnet build --no-restore
+        run: dotnet build --no-restore --configuration Release
           
       - name: Upload a Build next
         uses: actions/upload-artifact@v2.2.4
         with:
           name: BusinessCentral.LinterCop.next.dll
-          path: bin/Debug/netstandard2.1/BusinessCentral.LinterCop.dll
+          path: bin/Release/netstandard2.1/BusinessCentral.LinterCop.dll
       - name: Remove a Release Asset next
         uses: flcdrg/remove-release-asset-action@v1.0.13
         env:
@@ -117,6 +117,6 @@ jobs:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         with:
           upload_url: ${{ steps.create_release.outputs.upload_url }} 
-          asset_path: bin/Debug/netstandard2.1/BusinessCentral.LinterCop.dll
+          asset_path: bin/Release/netstandard2.1/BusinessCentral.LinterCop.dll
           asset_name: BusinessCentral.LinterCop.next.dll
           asset_content_type: application/octet-stream

From b08f7fa04d2c949561c57d9d307115e59f5d4246 Mon Sep 17 00:00:00 2001
From: Arthur van de Vondervoort <arthur.vandevondervoort@vanroey.be>
Date: Tue, 19 Dec 2023 19:47:22 +0100
Subject: [PATCH 2/2] Clear Build output to Release folder

---
 .github/workflows/build.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 442a31df..bd60547d 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -90,7 +90,7 @@ jobs:
           asset_name: BusinessCentral.LinterCop.current.dll
           asset_content_type: application/octet-stream
       - name: Clear Build output
-        run: Remove-Item -Path "bin/Debug" -Force -Recurse -Verbose;
+        run: Remove-Item -Path "bin/Release" -Force -Recurse -Verbose;
       - name: Unzip vsix next
         run: >
           Remove-Item -Path "ms-dynamics-smb.al-latest" -Force -Recurse -Verbose;