Skip to content

Add C# 16 compiler test project - #86355

Merged
333fred merged 1 commit into
dotnet:mainfrom
333fred:add-csharp-test-project
Nov 10, 2026
Merged

333fred merged 1 commit into
dotnet:mainfrom
333fred:add-csharp-test-project

Conversation

@333fred

@333fred 333fred commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Add a C# 16 compiler test project and register it with the solution, filters, and compiler test set.

Microsoft Reviewers: Open in CodeFlow

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 54b37b5a-fe0c-4a39-8a72-435e8bb52713
@333fred
333fred requested review from a team as code owners November 9, 2026 19:38
Copilot AI balanced review requested due to automatic review settings November 9, 2026 19:38
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@333fred

333fred commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

@dotnet/roslyn-compiler for review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@AlekseyTs

Copy link
Copy Markdown
Contributor

It would be good to verify that CI actually will run a test in the assembly

Copilot AI balanced review requested due to automatic review settings November 9, 2026 21:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The unskipped [Fact] in CSharp16TestDiscoveryTests.cs always fails, causing compiler test runs that include the new assembly to fail even when discovery works correctly.

1 open issue

Review effort: Balanced

@333fred
333fred force-pushed the add-csharp-test-project branch from 8d85386 to 7439abe Compare November 9, 2026 22:34
Copilot AI balanced review requested due to automatic review settings November 9, 2026 22:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the C# 16 test-project setup and registration.

1 open issue

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants