Skip to content

Conversation

@CalvinAllen
Copy link
Contributor

Summary

  • Remove implicit PackageReference for Microsoft.VSSDK.BuildTools from the SDK
  • Add explicit PackageReference to all e2e test projects and sample project
  • Update README documentation to show required package references

This allows projects using NuGet Central Package Management (CPM) to work correctly, as CPM requires PackageReference items to not have a Version attribute when versions are centrally managed.

Breaking Change

Users must now explicitly add the PackageReference in their project:

<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="17.*" PrivateAssets="all" />

Test plan

  • Build SDK package
  • Build sample extension
  • Build e2e test projects (E2E.Minimal, E2E.AllFeatures, E2E.Templates.*)
  • All builds succeed with explicit PackageReference

Closes #27

Remove implicit PackageReference for Microsoft.VSSDK.BuildTools from
the SDK. This allows projects using NuGet Central Package Management
(CPM) to work correctly, as CPM requires PackageReference items to not
have a Version attribute when versions are centrally managed.

Users must now explicitly add the PackageReference in their project:

  <PackageReference Include="Microsoft.VSSDK.BuildTools" Version="17.*" PrivateAssets="all" />

This is a breaking change but aligns with CPM compatibility requirements.

Closes #27
@CalvinAllen
Copy link
Contributor Author

/breaking-change The SDK no longer auto-includes the VSSDK Build Tools (this was preventing CPM from working). You must now explicitly add the PackageReference to your project:

<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="17.*" PrivateAssets="all" />

@CalvinAllen CalvinAllen merged commit 9fbc996 into main Jan 8, 2026
3 checks passed
@CalvinAllen CalvinAllen deleted the feat/sdk/cpm-support branch January 8, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

fix(sdk): add support for NuGet Central Package Management

2 participants