Update samples to v2 & .NET 10#811
Merged
tonybaloney merged 1 commit intotonybaloney:mainfrom Mar 27, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the repository’s sample projects to align with CSnakes.Runtime v2 and move samples onto .NET 10-era dependencies/configuration.
Changes:
- Retarget simple sample projects to
net10.0and bumpCSnakes.Runtimereferences to2.*-*. - Simplify sample Python file inclusion by removing explicit
AdditionalFilesdeclarations where defaults/build logic now cover it. - Update Aspire samples to newer Aspire SDK/package versions and mark Python
AdditionalFileswithSourceItemType="Python"for the source generator.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| samples/simple/WebApp/WebApp.csproj | Retarget to net10.0 and update CSnakes.Runtime to v2. |
| samples/simple/QuickConsoleTest/QuickConsoleTest.csproj | Retarget to net10.0 and update CSnakes.Runtime to v2. |
| samples/simple/FSharpSample/FSharpSample.fsproj | Retarget to net10.0 and update CSnakes.Runtime to v2. |
| samples/simple/ExamplePythonDependency/Public.cs | Adds declarations intended to expose generated extension types (currently introduces a compile issue). |
| samples/simple/ExamplePythonDependency/ExamplePythonDependency.csproj | Retarget to net10.0 and remove explicit Python AdditionalFiles configuration; update runtime to v2. |
| samples/simple/AOTConsoleApp/AOTConsoleApp.csproj | Remove explicit Python AdditionalFiles item and update runtime to v2. |
| samples/Aspire/CSnakesAspire.AppHost/CSnakesAspire.AppHost.csproj | Update Aspire AppHost SDK/package versions and project SDK style. |
| samples/Aspire/CSnakesAspire.ApiService/CSnakesAspire.ApiService.csproj | Mark linked Python file with SourceItemType="Python" and update package versions (incl. runtime v2). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tonybaloney
approved these changes
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates all sample projects to use CSnakes.Runtime 2.x and target .NET 10.