diff --git a/.github/workflows/deploy-backend.yml b/.github/workflows/deploy-backend.yml index a20a0acb..8669e353 100644 --- a/.github/workflows/deploy-backend.yml +++ b/.github/workflows/deploy-backend.yml @@ -16,11 +16,10 @@ jobs: with: creds: ${{ secrets.AZURE_CREDENTIALS }} - - name: Setup .NET 10 + - name: Setup .NET 8 uses: actions/setup-dotnet@v4 with: - dotnet-version: '10.0.x' - dotnet-quality: 'ga' + dotnet-version: '8.0.x' - name: Restore dependencies run: dotnet restore src/Backend/AutopilotMonitor.Functions/AutopilotMonitor.Functions.csproj diff --git a/global.json b/global.json deleted file mode 100644 index d46d21e5..00000000 --- a/global.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "sdk": { - "version": "10.0.100", - "rollForward": "latestFeature", - "allowPrerelease": false - } -} diff --git a/src/Backend/AutopilotMonitor.Functions.Tests/AutopilotMonitor.Functions.Tests.csproj b/src/Backend/AutopilotMonitor.Functions.Tests/AutopilotMonitor.Functions.Tests.csproj index 211c0061..71d5f2a6 100644 --- a/src/Backend/AutopilotMonitor.Functions.Tests/AutopilotMonitor.Functions.Tests.csproj +++ b/src/Backend/AutopilotMonitor.Functions.Tests/AutopilotMonitor.Functions.Tests.csproj @@ -1,7 +1,7 @@ - net10.0 + net8.0 enable enable false diff --git a/src/Backend/AutopilotMonitor.Functions/AutopilotMonitor.Functions.csproj b/src/Backend/AutopilotMonitor.Functions/AutopilotMonitor.Functions.csproj index ce4bd789..3706ba9f 100644 --- a/src/Backend/AutopilotMonitor.Functions/AutopilotMonitor.Functions.csproj +++ b/src/Backend/AutopilotMonitor.Functions/AutopilotMonitor.Functions.csproj @@ -1,7 +1,7 @@  - net10.0 + net8.0 V4 Exe enable @@ -28,25 +28,23 @@ - + - + - - - - - - - - - + + + + + + + diff --git a/src/Backend/AutopilotMonitor.Functions/Security/CertificateValidator.cs b/src/Backend/AutopilotMonitor.Functions/Security/CertificateValidator.cs index e69f3ceb..ebab0cac 100644 --- a/src/Backend/AutopilotMonitor.Functions/Security/CertificateValidator.cs +++ b/src/Backend/AutopilotMonitor.Functions/Security/CertificateValidator.cs @@ -66,7 +66,7 @@ namespace AutopilotMonitor.Functions.Security // Parse certificate from Base64 var certBytes = Convert.FromBase64String(certificateBase64); - var certificate = X509CertificateLoader.LoadCertificate(certBytes); + var certificate = new X509Certificate2(certBytes); var thumbprint = certificate.Thumbprint; logger?.LogDebug($"Validating certificate: Subject={certificate.Subject}, Issuer={certificate.Issuer}, Thumbprint={thumbprint}");