Skip to content

Conversation

@jjonescz
Copy link
Member

@jjonescz jjonescz commented Sep 18, 2025

Follow up on #50168.
Unblocked by a fix of #50435.

@jjonescz jjonescz added the Area-run-file Items related to the "dotnet run <file>" effort label Sep 18, 2025
@jjonescz jjonescz marked this pull request as ready for review September 18, 2025 12:06
@jjonescz jjonescz requested review from a team and Copilot September 18, 2025 12:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements the default behavior of packing file-based apps as tools by adding PackAsTool=true to the default properties for virtual projects. This follows up on a previous change and was unblocked by a fix for a related issue.

Key changes:

  • Adds PackAsTool=true as a default property for file-based apps
  • Updates test expectations to reflect the new default behavior
  • Removes explicit PackAsTool=true directives from tests where they are now redundant

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/Cli/dotnet/Commands/Run/VirtualProjectBuildingCommand.cs Adds PackAsTool=true to the default properties list for virtual projects
test/dotnet.Tests/CommandTests/Run/RunFileTests.cs Updates pack tests to remove explicit PackAsTool directives and adds the property to API test expectations
test/dotnet.Tests/CommandTests/Project/Convert/DotnetProjectConvertTests.cs Updates all project conversion tests to include PackAsTool=true in expected outputs and test patterns

@jjonescz
Copy link
Member Author

@RikkiGibson @333fred @MiYanni for reviews, thanks

@jjonescz jjonescz requested a review from MiYanni September 19, 2025 09:37
@baronfel baronfel merged commit 2e2c92f into dotnet:release/10.0.1xx Sep 22, 2025
29 checks passed
@jjonescz jjonescz deleted the sprint-pack-tool branch September 22, 2025 13:34
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