diff --git a/.github/workflows/codeQL.yml b/.github/workflows/codeQL.yml index 58eac188b..590b8b942 100644 --- a/.github/workflows/codeQL.yml +++ b/.github/workflows/codeQL.yml @@ -66,6 +66,11 @@ jobs: with: dotnet-version: '3.1.x' + - name: Set up .NET 10 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '10.0.x' + - name: Restore dependencies run: dotnet restore $solution diff --git a/eng/templates/build-steps.yml b/eng/templates/build-steps.yml index 746a1dba7..4caaa20af 100644 --- a/eng/templates/build-steps.yml +++ b/eng/templates/build-steps.yml @@ -30,6 +30,12 @@ steps: packageType: 'sdk' version: '6.0.x' +- task: UseDotNet@2 + displayName: 'Use the .NET 10 SDK' + inputs: + packageType: 'sdk' + version: '10.0.x' + - task: DotNetCoreCLI@2 displayName: 'Restore nuget dependencies' inputs: diff --git a/src/DurableTask.AzureStorage/DurableTask.AzureStorage.csproj b/src/DurableTask.AzureStorage/DurableTask.AzureStorage.csproj index 8ff135fbd..3bf10fea7 100644 --- a/src/DurableTask.AzureStorage/DurableTask.AzureStorage.csproj +++ b/src/DurableTask.AzureStorage/DurableTask.AzureStorage.csproj @@ -2,7 +2,7 @@ - netstandard2.0 + netstandard2.0;net10.0 true true Azure Storage provider extension for the Durable Task Framework. @@ -18,6 +18,11 @@ NU5125;NU5048;CS7035 + + + $(NoWarn);SYSLIB0014;SYSLIB0050;SYSLIB0051;CS8600;CS8601;CS8602;CS8603;CS8604;CS8767;CS0618;CS0672 + + 2 @@ -40,12 +45,17 @@ $(VersionPrefix)-$(VersionSuffix) + + + + + + + - - diff --git a/src/DurableTask.AzureStorage/OrchestrationSessionManager.cs b/src/DurableTask.AzureStorage/OrchestrationSessionManager.cs index 51a6e07ba..f880c108d 100644 --- a/src/DurableTask.AzureStorage/OrchestrationSessionManager.cs +++ b/src/DurableTask.AzureStorage/OrchestrationSessionManager.cs @@ -273,7 +273,7 @@ async Task> DedupeExecutionStartedMessagesAsync( // "Remote" -> the instance ID info comes from the Instances table that we're querying IAsyncEnumerable instances = this.trackingStore.GetStateAsync(instanceIds, cancellationToken); IDictionary remoteOrchestrationsById = - await instances.ToDictionaryAsync(o => o.OrchestrationInstance.InstanceId, cancellationToken); + await instances.ToDictionaryAsync(o => o.OrchestrationInstance.InstanceId, cancellationToken: cancellationToken); foreach (MessageData message in executionStartedMessages) {