From 6aaf6357442295a8f0c858d26ce86a38f29ec021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire?= Date: Tue, 29 Jul 2025 21:43:14 +0200 Subject: [PATCH 1/5] Upgrade DiagnosticScenarios to .NET 9 (#7054) * Upgrade DiagnosticScenarios to .NET 9 * Update logging --- .../DiagnosticScenarios.csproj | 7 +-- .../DiagnosticScenarios/Program.cs | 32 +++-------- .../DiagnosticScenarios/Startup.cs | 57 ------------------- .../appsettings.Development.json | 5 +- .../DiagnosticScenarios/appsettings.json | 3 +- 5 files changed, 13 insertions(+), 91 deletions(-) delete mode 100644 core/diagnostics/DiagnosticScenarios/Startup.cs diff --git a/core/diagnostics/DiagnosticScenarios/DiagnosticScenarios.csproj b/core/diagnostics/DiagnosticScenarios/DiagnosticScenarios.csproj index e7c303b758e..36e7b419d29 100644 --- a/core/diagnostics/DiagnosticScenarios/DiagnosticScenarios.csproj +++ b/core/diagnostics/DiagnosticScenarios/DiagnosticScenarios.csproj @@ -1,11 +1,8 @@ - net8.0 + net9.0 + enable - - - - diff --git a/core/diagnostics/DiagnosticScenarios/Program.cs b/core/diagnostics/DiagnosticScenarios/Program.cs index 92e7964881f..7f813b3c07b 100644 --- a/core/diagnostics/DiagnosticScenarios/Program.cs +++ b/core/diagnostics/DiagnosticScenarios/Program.cs @@ -1,26 +1,10 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; +var builder = WebApplication.CreateBuilder(args); +builder.Services.AddControllers(); -namespace DiagnosticScenarios -{ - public class Program - { - public static void Main(string[] args) - { - CreateHostBuilder(args).Build().Run(); - } +var app = builder.Build(); - public static IHostBuilder CreateHostBuilder(string[] args) => - Host.CreateDefaultBuilder(args) - .ConfigureWebHostDefaults(webBuilder => - { - webBuilder.UseStartup(); - }); - } -} +app.UseHttpsRedirection(); +app.UseAuthorization(); +app.MapControllers(); + +app.Run(); diff --git a/core/diagnostics/DiagnosticScenarios/Startup.cs b/core/diagnostics/DiagnosticScenarios/Startup.cs deleted file mode 100644 index 299b7604095..00000000000 --- a/core/diagnostics/DiagnosticScenarios/Startup.cs +++ /dev/null @@ -1,57 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.HttpsPolicy; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; - -namespace DiagnosticScenarios -{ - public class Startup - { - public Startup(IConfiguration configuration) - { - Configuration = configuration; - } - - public IConfiguration Configuration { get; } - - // This method gets called by the runtime. Use this method to add services to the container. - public void ConfigureServices(IServiceCollection services) - { - services.AddControllers() - .AddNewtonsoftJson(); - } - - // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. - public void Configure(IApplicationBuilder app, IWebHostEnvironment env) - { - if (env.IsDevelopment()) - { - app.UseDeveloperExceptionPage(); - } - else - { - // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. - app.UseHsts(); - } - - app.UseHttpsRedirection(); - - app.UseRouting(); - - app.UseAuthorization(); - - app.UseEndpoints(endpoints => - { - endpoints.MapControllers(); - }); - } - } -} diff --git a/core/diagnostics/DiagnosticScenarios/appsettings.Development.json b/core/diagnostics/DiagnosticScenarios/appsettings.Development.json index e203e9407e7..0c208ae9181 100644 --- a/core/diagnostics/DiagnosticScenarios/appsettings.Development.json +++ b/core/diagnostics/DiagnosticScenarios/appsettings.Development.json @@ -1,9 +1,8 @@ { "Logging": { "LogLevel": { - "Default": "Debug", - "System": "Information", - "Microsoft": "Information" + "Default": "Information", + "Microsoft.AspNetCore": "Warning" } } } diff --git a/core/diagnostics/DiagnosticScenarios/appsettings.json b/core/diagnostics/DiagnosticScenarios/appsettings.json index d9d9a9bff6f..10f68b8c8b4 100644 --- a/core/diagnostics/DiagnosticScenarios/appsettings.json +++ b/core/diagnostics/DiagnosticScenarios/appsettings.json @@ -2,8 +2,7 @@ "Logging": { "LogLevel": { "Default": "Information", - "Microsoft": "Warning", - "Microsoft.Hosting.Lifetime": "Information" + "Microsoft.AspNetCore": "Warning" } }, "AllowedHosts": "*" From cf6859581e1ff90612566a464058060b0aa7838c Mon Sep 17 00:00:00 2001 From: Fati Iseni Date: Tue, 29 Jul 2025 22:25:15 +0200 Subject: [PATCH 2/5] Updated MSBuild sample. (#7044) --- .../AppSettingStronglyTyped.csproj | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/msbuild/custom-task-code-generation/AppSettingStronglyTyped/AppSettingStronglyTyped/AppSettingStronglyTyped.csproj b/msbuild/custom-task-code-generation/AppSettingStronglyTyped/AppSettingStronglyTyped/AppSettingStronglyTyped.csproj index a42b8db5731..818d1d228ff 100644 --- a/msbuild/custom-task-code-generation/AppSettingStronglyTyped/AppSettingStronglyTyped/AppSettingStronglyTyped.csproj +++ b/msbuild/custom-task-code-generation/AppSettingStronglyTyped/AppSettingStronglyTyped/AppSettingStronglyTyped.csproj @@ -8,22 +8,27 @@ Generates a strongly typed setting class base on a txt file MyTags Copyright ©Contoso 2022 - + + true + true + $(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage tasks NU5100 + true embedded true - + + PrivateAssets="all" + ExcludeAssets="Runtime" /> Date: Wed, 30 Jul 2025 13:29:55 +0000 Subject: [PATCH 3/5] Bump SixLabors.ImageSharp from 3.1.7 to 3.1.11 --- updated-dependencies: - dependency-name: SixLabors.ImageSharp dependency-version: 3.1.11 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- orleans/ChatRoom/ChatRoom.Client/ChatRoom.Client.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orleans/ChatRoom/ChatRoom.Client/ChatRoom.Client.csproj b/orleans/ChatRoom/ChatRoom.Client/ChatRoom.Client.csproj index 09e00ab639a..99788456524 100644 --- a/orleans/ChatRoom/ChatRoom.Client/ChatRoom.Client.csproj +++ b/orleans/ChatRoom/ChatRoom.Client/ChatRoom.Client.csproj @@ -17,7 +17,7 @@ - + From fdfed9cac2936bb21b9be2b2f9e4b2e3b7e7f4be Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Aug 2025 20:19:15 +0000 Subject: [PATCH 4/5] Bump actions/checkout from 4.2.2 to 5.0.0 in the dotnet group Bumps the dotnet group with 1 update: [actions/checkout](https://github.com/actions/checkout). Updates `actions/checkout` from 4.2.2 to 5.0.0 - [Release notes](https://github.com/actions/checkout/releases) - [Commits](https://github.com/actions/checkout/compare/v4.2.2...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 5.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: dotnet ... Signed-off-by: dependabot[bot] --- .github/workflows/dotnet-code-metrics.yml | 2 +- .github/workflows/markdownlint.yml | 2 +- .github/workflows/publish-mono-samples.yml | 2 +- .github/workflows/snippets5000.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet-code-metrics.yml b/.github/workflows/dotnet-code-metrics.yml index 072aaabb046..9b20ab9ebf6 100644 --- a/.github/workflows/dotnet-code-metrics.yml +++ b/.github/workflows/dotnet-code-metrics.yml @@ -22,7 +22,7 @@ jobs: pull-requests: write steps: - - uses: actions/checkout@v4.2.2 + - uses: actions/checkout@v5.0.0 - name: 'Print manual run reason' if: ${{ github.event_name == 'workflow_dispatch' }} diff --git a/.github/workflows/markdownlint.yml b/.github/workflows/markdownlint.yml index e45ad51a749..74279c2dceb 100644 --- a/.github/workflows/markdownlint.yml +++ b/.github/workflows/markdownlint.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #@v2 + - uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 #@v2 - name: Use Node.js uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 #@v1 with: diff --git a/.github/workflows/publish-mono-samples.yml b/.github/workflows/publish-mono-samples.yml index 7adb1320e89..637ccebba30 100644 --- a/.github/workflows/publish-mono-samples.yml +++ b/.github/workflows/publish-mono-samples.yml @@ -23,7 +23,7 @@ jobs: build-mono: runs-on: macos-latest steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #@v2 + - uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 #@v2 - name: Setup .NET SDK 6 if: ${{ env.DOTNET_DO_INSTALL == 'true' }} run: | diff --git a/.github/workflows/snippets5000.yml b/.github/workflows/snippets5000.yml index b3ad2257654..a9108afae7e 100644 --- a/.github/workflows/snippets5000.yml +++ b/.github/workflows/snippets5000.yml @@ -32,7 +32,7 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #@v4.2.2 + - uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 #@v4.2.2 # Get the latest preview SDK (or sdk not installed by the runner) - name: Setup .NET SDK From 5539421a2f9184ad03d5fb15eae991a95f84c790 Mon Sep 17 00:00:00 2001 From: Aaron Robinson Date: Thu, 21 Aug 2025 15:12:10 -0700 Subject: [PATCH 5/5] Update Contract.idl (#7065) This enables late bound scenarios in scripting languages. --- core/extensions/OutOfProcCOM/Server.Contract/Contract.idl | 1 + 1 file changed, 1 insertion(+) diff --git a/core/extensions/OutOfProcCOM/Server.Contract/Contract.idl b/core/extensions/OutOfProcCOM/Server.Contract/Contract.idl index d758caf5c8b..b6c38685118 100644 --- a/core/extensions/OutOfProcCOM/Server.Contract/Contract.idl +++ b/core/extensions/OutOfProcCOM/Server.Contract/Contract.idl @@ -4,6 +4,7 @@ import "ocidl.idl"; [ object, oleautomation, + dual, uuid(F586D6F4-AF37-441E-80A6-3D33D977882D) ] interface IServer : IDispatch