Skip to content

Switch file-based app integration tests to use dotnet.exe only#7316

Open
jjonescz wants to merge 1 commit intoNuGet:devfrom
jjonescz:14823-fbp-integration-tests
Open

Switch file-based app integration tests to use dotnet.exe only#7316
jjonescz wants to merge 1 commit intoNuGet:devfrom
jjonescz:14823-fbp-integration-tests

Conversation

@jjonescz
Copy link
Copy Markdown
Contributor

@jjonescz jjonescz commented Apr 22, 2026

Bug

Closes NuGet/Home#14823

Description

Migrate all 5 file-based app tests in Dotnet.Integration.Test to invoke dotnet CLI commands directly instead of calling internal NuGet APIs:

  • dotnet package add --file
  • dotnet package remove --file
  • dotnet package list --file
  • dotnet package update --file
  • dotnet nuget why

This is possible because the test SDK (10.0.300-preview from .test/dotnet) includes the companion SDK-side support (dotnet/sdk#53535).

Also removes:

  • MSBuildLocator.RegisterMSBuildPath from the fixture (no longer needed)
  • GetFileBasedAppVirtualProject helper (no longer used)
  • TestVirtualProjectBuilder usage from integration tests
  • Unnecessary using directives

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

Migrate all 5 file-based app tests in Dotnet.Integration.Test to invoke
dotnet CLI commands directly instead of calling internal NuGet APIs:

- dotnet package add --file
- dotnet package remove --file
- dotnet package list --file
- dotnet package update --file
- dotnet nuget why <file>

This is possible because the test SDK (10.0.300-preview from .test/dotnet)
includes the companion SDK-side support (dotnet/sdk#53535).

Also removes:
- MSBuildLocator.RegisterMSBuildPath from the fixture (no longer needed)
- GetFileBasedAppVirtualProject helper (no longer used)
- TestVirtualProjectBuilder usage from integration tests
- Unnecessary using directives

Closes NuGet/Home#14823

Co-authored-by: Copilot <[email protected]>
@dotnet-policy-service dotnet-policy-service Bot added the Community PRs created by someone not in the NuGet team label Apr 22, 2026
@jjonescz jjonescz marked this pull request as ready for review April 23, 2026 07:09
@jjonescz jjonescz requested a review from a team as a code owner April 23, 2026 07:09
@jjonescz
Copy link
Copy Markdown
Contributor Author

cc @nkolev92

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

Labels

Community PRs created by someone not in the NuGet team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update file-based app integration tests to use dotnet.exe only

1 participant