-
Notifications
You must be signed in to change notification settings - Fork 591
Supporting dotnet 10.0 preview version #1305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
AlvaroRausell
merged 20 commits into
devcontainers:main
from
Kaniska244:dotnet_10_preview_version_support
Jun 11, 2025
Merged
Changes from 16 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
28f5a93
Supporting dotnet 10.0 preview version
Kaniska244 d2855d9
Changing the test to fetch actual LTS version.
Kaniska244 e0501a4
To resolve the conflict
Kaniska244 6a504bd
To resolve conflict again
Kaniska244 f9dc5a7
Version bump and adding back the azureedge url's as those should be r…
Kaniska244 481d6e4
To resolve conflict again
Kaniska244 2729ad1
Merge branch 'main' into dotnet_10_preview_version_support
Kaniska244 34ff0c4
Final version bump
Kaniska244 893ca63
Reverting back the test script change as created separate PR for that.
Kaniska244 3f8fec7
Merge branch 'main' into dotnet_10_preview_version_support
Kaniska244 8040226
Ubuntu EOL changes and additional info about dotnet 10.0-preview vers…
Kaniska244 41d36fb
Merge branch 'main' into dotnet_10_preview_version_support
Kaniska244 ea297dd
Correcting the comment.
Kaniska244 727eafe
Merge branch 'main' into dotnet_10_preview_version_support
Kaniska244 7863a5a
Merge branch 'main' into dotnet_10_preview_version_support
AlvaroRausell 56fcbdd
Updates based on review comments to use '-preview' in the label as su…
Kaniska244 404a8cb
Removed reame file change as suggested.
Kaniska244 5ad9c26
Update src/dotnet/README.md
AlvaroRausell 118dccc
Merge branch 'main' into dotnet_10_preview_version_support
AlvaroRausell 395045f
Inconsequential change to rerun the failed test
Kaniska244 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -e | ||
|
|
||
| # Optional: Import test library bundled with the devcontainer CLI | ||
| # See https://github.com/devcontainers/cli/blob/HEAD/docs/features/test.md#dev-container-features-test-lib | ||
| # Provides the 'check' and 'reportResults' commands. | ||
| source dev-container-features-test-lib | ||
|
|
||
| # Feature-specific tests | ||
| # The 'check' command comes from the dev-container-features-test-lib. Syntax is... | ||
| # check <LABEL> <cmd> [args...] | ||
| source dotnet_env.sh | ||
| source dotnet_helpers.sh | ||
|
|
||
| check ".NET SDK 9.0 installed" \ | ||
| is_dotnet_sdk_version_installed "9.0" | ||
|
|
||
| check ".NET SDK 8.0 installed" \ | ||
| is_dotnet_sdk_version_installed "8.0" | ||
|
|
||
| check ".NET SDK 7.0 installed" \ | ||
| is_dotnet_sdk_version_installed "7.0" | ||
|
|
||
| check ".NET SDK 10.0 installed" \ | ||
| is_dotnet_sdk_version_installed "10.0" | ||
|
|
||
| check "Build example class library" \ | ||
| dotnet build projects/multitargeting | ||
|
|
||
| check "Build and run .NET 9.0 project" \ | ||
| dotnet run --project projects/net9.0 | ||
|
|
||
| check "Build and run .NET 8.0 project" \ | ||
| dotnet run --project projects/net8.0 | ||
|
|
||
| check "Build and run .NET 7.0 project" \ | ||
| dotnet run --project projects/net7.0 | ||
|
|
||
| check "Build and run .NET 10.0 project" \ | ||
| dotnet run --project projects/net10.0 | ||
|
|
||
| # Report results | ||
| # If any of the checks above exited with a non-zero exit code, the test will fail. | ||
| reportResults | ||
|
|
||
|
|
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| using Newtonsoft.Json; | ||
|
|
||
| string json = """ | ||
| { | ||
| "Name": "Inception", | ||
| "ReleaseDate": "2010-07-08T00:00:00", | ||
| "Genres": [ | ||
| "Action", | ||
| "Thriller" | ||
| ] | ||
| } | ||
| """; | ||
|
|
||
| Movie? m = JsonConvert.DeserializeObject<Movie>(json); | ||
|
|
||
| if (m == default) | ||
| { | ||
| Console.WriteLine("Decoding failed!"); | ||
| } | ||
| else | ||
| { | ||
| Console.WriteLine($"Movie name: {m.Name}"); | ||
| Console.WriteLine($"Release Date: {m.ReleaseDate}"); | ||
| Console.WriteLine($"Genres: {string.Join(", ", m.Genres)}"); | ||
| } | ||
|
|
||
| class Movie(string? name, DateTime releaseDate, List<string>? genres) | ||
| { | ||
| public string Name { get; set; } = name ?? "Default Name"; | ||
| public DateTime ReleaseDate { get; set; } = releaseDate; | ||
| public List<string> Genres { get; set; } = genres ?? []; | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
|
|
||
| <PropertyGroup> | ||
| <OutputType>Exe</OutputType> | ||
| <TargetFramework>net10.0</TargetFramework> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> |
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
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.
Uh oh!
There was an error while loading. Please reload this page.