Skip to content

File-based apps: remove feature flag for #:ref - #56247

Merged
jjonescz merged 1 commit into
dotnet:mainfrom
jjonescz:ref-exp
Sep 14, 2026
Merged

jjonescz merged 1 commit into
dotnet:mainfrom
jjonescz:ref-exp

Conversation

@jjonescz

Copy link
Copy Markdown
Member

No description provided.

@jjonescz jjonescz added the Area-run-file Items related to the "dotnet run <file>" effort label Sep 11, 2026
@azure-pipelines

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

@jjonescz
jjonescz marked this pull request as ready for review September 11, 2026 10:25
@jjonescz
jjonescz requested review from a team as code owners September 11, 2026 10:25
Copilot AI lite review requested due to automatic review settings September 11, 2026 10:25
@azure-pipelines

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

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 unresolved review comments remain and the supplied assessments support approval.

Pull request overview

Removes the experimental feature flag for #:ref, enabling it by default in file-based apps.

Changes:

  • Removes flag validation, API constants, resources, and documentation.
  • Updates related run, reference, and conversion tests.
  • Removes obsolete localized resource entries.
File summaries
File Summary
test/dotnet.Tests/CommandTests/Run/RunFileTests_General.cs Updates stdin reference tests.
test/dotnet.Tests/CommandTests/Run/RunFileTests_Directives.cs Updates directive tests.
test/dotnet.Tests/CommandTests/Run/RunFileTests_CscOnlyAndApi.cs Updates reference build and API tests.
test/dotnet.Tests/CommandTests/Run/RunFileTests_BuildOptions.cs Updates build-option tests.
test/dotnet.Tests/CommandTests/Run/RunFileTestBase.cs Removes the flag helper.
test/dotnet.Tests/CommandTests/Reference/Remove/GivenDotnetRemoveP2P.cs Updates reference removal tests.
test/dotnet.Tests/CommandTests/Reference/List/GivenDotnetListReference.cs Updates reference listing tests.
test/dotnet.Tests/CommandTests/Reference/Add/GivenDotnetAddReference.cs Updates reference addition tests.
test/dotnet.Tests/CommandTests/Project/Convert/DotnetProjectConvertTests.cs Updates conversion tests.
src/Cli/Microsoft.DotNet.FileBasedPrograms/xlf/FileBasedProgramsResources.zh-Hant.xlf Removes obsolete localization.
src/Cli/Microsoft.DotNet.FileBasedPrograms/xlf/FileBasedProgramsResources.zh-Hans.xlf Removes obsolete localization.
src/Cli/Microsoft.DotNet.FileBasedPrograms/xlf/FileBasedProgramsResources.tr.xlf Removes obsolete localization.
src/Cli/Microsoft.DotNet.FileBasedPrograms/xlf/FileBasedProgramsResources.ru.xlf Removes obsolete localization.
src/Cli/Microsoft.DotNet.FileBasedPrograms/xlf/FileBasedProgramsResources.pt-BR.xlf Removes obsolete localization.
src/Cli/Microsoft.DotNet.FileBasedPrograms/xlf/FileBasedProgramsResources.pl.xlf Removes obsolete localization.
src/Cli/Microsoft.DotNet.FileBasedPrograms/xlf/FileBasedProgramsResources.ko.xlf Removes obsolete localization.
src/Cli/Microsoft.DotNet.FileBasedPrograms/xlf/FileBasedProgramsResources.ja.xlf Removes obsolete localization.
src/Cli/Microsoft.DotNet.FileBasedPrograms/xlf/FileBasedProgramsResources.it.xlf Removes obsolete localization.
src/Cli/Microsoft.DotNet.FileBasedPrograms/xlf/FileBasedProgramsResources.fr.xlf Removes obsolete localization.
src/Cli/Microsoft.DotNet.FileBasedPrograms/xlf/FileBasedProgramsResources.es.xlf Removes obsolete localization.
src/Cli/Microsoft.DotNet.FileBasedPrograms/xlf/FileBasedProgramsResources.de.xlf Removes obsolete localization.
src/Cli/Microsoft.DotNet.FileBasedPrograms/xlf/FileBasedProgramsResources.cs.xlf Removes obsolete localization.
src/Cli/Microsoft.DotNet.FileBasedPrograms/VirtualProjectBuilder.cs Removes feature-gate validation.
src/Cli/Microsoft.DotNet.FileBasedPrograms/InternalAPI.Unshipped.txt Removes the obsolete API entry.
src/Cli/Microsoft.DotNet.FileBasedPrograms/FileLevelDirectiveHelpers.cs Removes the obsolete flag constant.
src/Cli/Microsoft.DotNet.FileBasedPrograms/FileBasedProgramsResources.resx Removes the obsolete resource.
documentation/general/dotnet-run-file.md Removes feature-flag documentation.
Review details
  • Files reviewed: 27/27 changed files
  • Comments generated: 0
  • Review effort level: Lite

@jjonescz
jjonescz merged commit a7f1cdf into dotnet:main Sep 14, 2026
28 checks passed
@jjonescz
jjonescz deleted the ref-exp branch September 14, 2026 11:09
@jjonescz

Copy link
Copy Markdown
Member Author

/backport to release/11.0.1xx

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/11.0.1xx (link to workflow run)

This branch had an error being deployed

1 failed deployment
copilot-pat-pool — 160e834e Deployed Sep 14, 2026 by jjonescz via pre_activation #4725
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-run-file Items related to the "dotnet run <file>" effort

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants