Repository navigation
Add C# 16 compiler test project - #86355
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]> Copilot-Session: 54b37b5a-fe0c-4a39-8a72-435e8bb52713
|
Azure Pipelines: Successfully started running 2 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
Member
Author
|
@dotnet/roslyn-compiler for review |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified in the C# 16 test-project infrastructure changes.
No open issues 🎉
What changed in this PR
Adds the project infrastructure for C# 16 compiler tests and connects it to Roslyn’s existing build and test setup. No test cases or compiler behavior changes are included.
Changes:
- Creates a C# 16 test project targeting
$(NetRoslyn)and .NET Framework 4.7.2. - Registers the project in the solution, solution filters, and compiler test set.
- Grants the new test assembly access to compiler, scripting, and test utility internals.
| File | Description |
|---|---|
src/Tools/RunTests/Options.cs |
Adds the assembly to the compiler test set. |
src/Test/PdbUtilities/Roslyn.Test.PdbUtilities.csproj |
Grants access to PDB utility internals. |
src/Scripting/CSharp/Microsoft.CodeAnalysis.CSharp.Scripting.csproj |
Grants access to C# scripting internals. |
src/Compilers/Test/Utilities/CSharp/Microsoft.CodeAnalysis.CSharp.Test.Utilities.csproj |
Grants access to C# test utility internals. |
src/Compilers/Test/Core/Microsoft.CodeAnalysis.Test.Utilities.csproj |
Grants access to shared test utility internals. |
src/Compilers/CSharp/Test/CSharp16/Microsoft.CodeAnalysis.CSharp.CSharp16.UnitTests.csproj |
Defines the new test project and its dependencies. |
src/Compilers/CSharp/Portable/Microsoft.CodeAnalysis.CSharp.csproj |
Grants access to C# compiler internals. |
src/Compilers/Core/Portable/Microsoft.CodeAnalysis.csproj |
Grants access to shared compiler internals. |
Roslyn.slnx |
Includes the project in the main solution. |
Ide.slnf |
Includes the project in the IDE solution filter. |
Compilers.slnf |
Includes the project in the compiler solution filter. |
Review effort: Balanced
Contributor
|
It would be good to verify that CI actually will run a test in the assembly |
AlekseyTs
approved these changes
Nov 9, 2026
333fred
force-pushed
the
add-csharp-test-project
branch
from
November 9, 2026 22:34
8d85386 to
7439abe
Compare
AlekseyTs
approved these changes
Nov 9, 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.

Add a C# 16 compiler test project and register it with the solution, filters, and compiler test set.
Microsoft Reviewers: Open in CodeFlow