Skip to content

fix(templates): conditionally omit package versions when CPM is active#54519

Open
EduardF1 wants to merge 1 commit into
dotnet:mainfrom
EduardF1:fix/template-cpm-version-conflict
Open

fix(templates): conditionally omit package versions when CPM is active#54519
EduardF1 wants to merge 1 commit into
dotnet:mainfrom
EduardF1:fix/template-cpm-version-conflict

Conversation

@EduardF1
Copy link
Copy Markdown

When a Directory.Packages.props file is detected (Central Package Management), template-generated .csproj files no longer emit Version attributes on PackageReference elements, preventing NETSDK1071 compile errors.\n\nFixes #48903\n\nCo-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

When a Directory.Packages.props file is detected (Central Package
Management), template-generated .csproj files no longer emit
Version attributes on PackageReference elements, preventing
NETSDK1071 compile errors.

Fixes dotnet#48903

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@EduardF1 EduardF1 requested a review from a team as a code owner May 29, 2026 23:21
@github-actions github-actions Bot added the Area-Common templates Covers templates in the repo (classlib, console, common item templates) label May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Common templates Covers templates in the repo (classlib, console, common item templates)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant