From 88d2f2ccc45e71f3a14481e0fb449a62600a2fb9 Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Fri, 23 Jan 2026 09:12:15 +1100 Subject: [PATCH 1/2] Enabling aot on samples with aot support published --- cookbook/dotnet/recipe/error-handling.cs | 1 - cookbook/dotnet/recipe/managing-local-files.cs | 1 - cookbook/dotnet/recipe/multiple-sessions.cs | 1 - cookbook/dotnet/recipe/persisting-sessions.cs | 1 - cookbook/dotnet/recipe/pr-visualization.cs | 1 - 5 files changed, 5 deletions(-) diff --git a/cookbook/dotnet/recipe/error-handling.cs b/cookbook/dotnet/recipe/error-handling.cs index 957e6649..a75f6411 100644 --- a/cookbook/dotnet/recipe/error-handling.cs +++ b/cookbook/dotnet/recipe/error-handling.cs @@ -1,5 +1,4 @@ #:project ../../../dotnet/src/GitHub.Copilot.SDK.csproj -#:property PublishAot=false using GitHub.Copilot.SDK; diff --git a/cookbook/dotnet/recipe/managing-local-files.cs b/cookbook/dotnet/recipe/managing-local-files.cs index 17e31687..05df5cca 100644 --- a/cookbook/dotnet/recipe/managing-local-files.cs +++ b/cookbook/dotnet/recipe/managing-local-files.cs @@ -1,5 +1,4 @@ #:project ../../../dotnet/src/GitHub.Copilot.SDK.csproj -#:property PublishAot=false using GitHub.Copilot.SDK; diff --git a/cookbook/dotnet/recipe/multiple-sessions.cs b/cookbook/dotnet/recipe/multiple-sessions.cs index 31f88be3..e9f70079 100644 --- a/cookbook/dotnet/recipe/multiple-sessions.cs +++ b/cookbook/dotnet/recipe/multiple-sessions.cs @@ -1,5 +1,4 @@ #:project ../../../dotnet/src/GitHub.Copilot.SDK.csproj -#:property PublishAot=false using GitHub.Copilot.SDK; diff --git a/cookbook/dotnet/recipe/persisting-sessions.cs b/cookbook/dotnet/recipe/persisting-sessions.cs index 7b5af350..98fa71ef 100644 --- a/cookbook/dotnet/recipe/persisting-sessions.cs +++ b/cookbook/dotnet/recipe/persisting-sessions.cs @@ -1,5 +1,4 @@ #:project ../../../dotnet/src/GitHub.Copilot.SDK.csproj -#:property PublishAot=false using GitHub.Copilot.SDK; diff --git a/cookbook/dotnet/recipe/pr-visualization.cs b/cookbook/dotnet/recipe/pr-visualization.cs index 256c9240..6c2f9459 100644 --- a/cookbook/dotnet/recipe/pr-visualization.cs +++ b/cookbook/dotnet/recipe/pr-visualization.cs @@ -1,5 +1,4 @@ #:project ../../../dotnet/src/GitHub.Copilot.SDK.csproj -#:property PublishAot=false using System.Diagnostics; using GitHub.Copilot.SDK; From 005e9c87d985e0408748b2744e4c97ecff850172 Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Wed, 28 Jan 2026 10:03:10 +1100 Subject: [PATCH 2/2] Fixing cookbook readme --- cookbook/dotnet/recipe/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cookbook/dotnet/recipe/README.md b/cookbook/dotnet/recipe/README.md index 8394e426..e4601ef5 100644 --- a/cookbook/dotnet/recipe/README.md +++ b/cookbook/dotnet/recipe/README.md @@ -4,7 +4,7 @@ This folder contains standalone, executable C# examples for each cookbook recipe ## Prerequisites -- .NET 9.0 or later +- .NET 10.0 or later - GitHub Copilot SDK package (referenced automatically) ## Running Examples @@ -48,8 +48,6 @@ These examples use .NET's file-based app feature, which allows single-file C# pr - Automatically reference common packages - Support top-level statements -Each file includes `#:property PublishAot=false` to disable AOT compilation, ensuring compatibility with the Copilot SDK. - ## Learning Resources - [.NET File-Based Apps Documentation](https://learn.microsoft.com/en-us/dotnet/core/sdk/file-based-apps)