diff --git a/build/install-dotnet.yml b/build/install-dotnet.yml index 5b3e2dfc2..1cdaa3c38 100644 --- a/build/install-dotnet.yml +++ b/build/install-dotnet.yml @@ -4,7 +4,13 @@ steps: displayName: 'Install .NET6 SDK' inputs: packageType: 'sdk' - version: "6.0.412" + version: "6.x" + +- task: UseDotNet@2 + displayName: 'Install .NET7 SDK' + inputs: + packageType: 'sdk' + version: "7.x" # The SDK we use to build - task: UseDotNet@2 diff --git a/global.json b/global.json index afc32cee3..4ac08fdaf 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "7.0.306", + "version": "8.0.100", "rollForward": "latestFeature" }, "msbuild-sdks": { diff --git a/host/src/FunctionsNetHost/global.json b/host/src/FunctionsNetHost/global.json index 27928313f..989a69caf 100644 --- a/host/src/FunctionsNetHost/global.json +++ b/host/src/FunctionsNetHost/global.json @@ -1,7 +1,6 @@ { "sdk": { - "version": "8.0.100-rc.2.23502.2", - "allowPrerelease": true, + "version": "8.0.100", "rollForward": "latestMinor" } } \ No newline at end of file diff --git a/samples/AspNetIntegration/AspNetIntegration.csproj b/samples/AspNetIntegration/AspNetIntegration.csproj index 5a5bfa51f..7cf66cefe 100644 --- a/samples/AspNetIntegration/AspNetIntegration.csproj +++ b/samples/AspNetIntegration/AspNetIntegration.csproj @@ -1,6 +1,6 @@  - net7.0 + net8.0 v4 Exe enable @@ -8,7 +8,7 @@ - + diff --git a/samples/AspNetIntegration/RoutingMiddleware.cs b/samples/AspNetIntegration/RoutingMiddleware.cs index 70c56c7b2..e0abd8007 100644 --- a/samples/AspNetIntegration/RoutingMiddleware.cs +++ b/samples/AspNetIntegration/RoutingMiddleware.cs @@ -22,7 +22,7 @@ public Task Invoke(FunctionContext context, FunctionExecutionDelegate next) { string? displayName = endpoint.DisplayName; string? routePattern = endpoint.RoutePattern.RawText; - IReadOnlyList? httpMethods = (endpoint.Metadata.Single() as HttpMethodMetadata)?.HttpMethods; + IReadOnlyList? httpMethods = (endpoint.Metadata.Single(b=>b is HttpMethodMetadata) as HttpMethodMetadata)?.HttpMethods; } // continue along with function execution diff --git a/samples/Configuration/Configuration.csproj b/samples/Configuration/Configuration.csproj index c3f8a40ab..ecd847dd6 100644 --- a/samples/Configuration/Configuration.csproj +++ b/samples/Configuration/Configuration.csproj @@ -1,14 +1,14 @@  - net7.0 + net8.0 v4 Exe - - - + + + diff --git a/samples/CustomMiddleware/CustomMiddleware.csproj b/samples/CustomMiddleware/CustomMiddleware.csproj index 074690b62..9d24472e8 100644 --- a/samples/CustomMiddleware/CustomMiddleware.csproj +++ b/samples/CustomMiddleware/CustomMiddleware.csproj @@ -1,7 +1,7 @@  false - net7.0 + net8.0 latest v4 Exe @@ -13,10 +13,10 @@ - - + + - + diff --git a/samples/EntityFramework/EntityFramework.csproj b/samples/EntityFramework/EntityFramework.csproj index ce669b25f..da9d2668f 100644 --- a/samples/EntityFramework/EntityFramework.csproj +++ b/samples/EntityFramework/EntityFramework.csproj @@ -1,19 +1,19 @@  - net7.0 + net8.0 v4 Exe - - - - - + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + diff --git a/samples/Extensions/Extensions.csproj b/samples/Extensions/Extensions.csproj index f37fda33a..812770e69 100644 --- a/samples/Extensions/Extensions.csproj +++ b/samples/Extensions/Extensions.csproj @@ -1,12 +1,12 @@  - net7.0 + net8.0 v4 Exe <_FunctionsSkipCleanOutput>true - + @@ -20,7 +20,7 @@ - + diff --git a/samples/FunctionApp/FunctionApp.csproj b/samples/FunctionApp/FunctionApp.csproj index 1c378e023..74f5f40d5 100644 --- a/samples/FunctionApp/FunctionApp.csproj +++ b/samples/FunctionApp/FunctionApp.csproj @@ -1,7 +1,7 @@  false - net7.0 + net8.0 v4 Exe <_FunctionsSkipCleanOutput>true @@ -14,7 +14,7 @@ - + @@ -35,10 +35,10 @@ - - - +