Skip to content

Handle missing active Visual Studio project - #7654

Merged
nkolev92 merged 1 commit into
devfrom
dev-nkolev92-fixNullActiveProject
Aug 26, 2026
Merged

nkolev92 merged 1 commit into
devfrom
dev-nkolev92-fixNullActiveProject

Conversation

@nkolev92

Copy link
Copy Markdown
Member

Bug

Fixes: NuGet/Home#15059

Description

Annotates active project lookup as nullable and handles a missing project in NuGet migration command status and execution paths. This prevents null reference exceptions when Visual Studio has no active DTE project.

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.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 478da3fc-4e1d-42fd-a7a0-e7db32aff422
@nkolev92
nkolev92 marked this pull request as ready for review August 25, 2026 21:54
@nkolev92
nkolev92 requested a review from a team as a code owner August 25, 2026 21:54
@nkolev92
nkolev92 merged commit b2c37df into dev Aug 26, 2026
17 of 18 checks passed
@nkolev92
nkolev92 deleted the dev-nkolev92-fixNullActiveProject branch August 26, 2026 17:24
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.

NuGet commands can throw when no active project is selected

2 participants