Visitar URL original
Fix --no-restore corrupting .csproj in CPM projects by slang25 · Pull Request #713 · dotnet-outdated/dotnet-outdated · GitHub
Skip to content

Fix --no-restore corrupting .csproj in CPM projects - #713

Merged
slang25 merged 1 commit into
masterfrom
fix/cpm-no-restore
Feb 17, 2026
Merged

slang25 merged 1 commit into
masterfrom
fix/cpm-no-restore

Conversation

@slang25

@slang25 slang25 commented Feb 17, 2026

Copy link
Copy Markdown
Member

Address issue introduce in 4.7.0

Fixes #703

When --no-restore is used with Central Package Management, dotnet add
package writes version info to .csproj instead of Directory.Packages.props
(NuGet/Home#12552). Detect CPM and update Directory.Packages.props
directly to work around this upstream bug.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@slang25
slang25 merged commit b40ef81 into master Feb 17, 2026
6 checks passed
github-actions Bot pushed a commit to EelcoLos/nx-tinkering that referenced this pull request Mar 2, 2026
Updated
[dotnet-outdated-tool](https://github.com/dotnet-outdated/dotnet-outdated)
from 4.7.0 to 4.7.1.

<details>
<summary>Release notes</summary>

_Sourced from [dotnet-outdated-tool's
releases](https://github.com/dotnet-outdated/dotnet-outdated/releases)._

## 4.7.1

## What's Changed
* Fix --no-restore corrupting .csproj in CPM projects by @​slang25 in
dotnet-outdated/dotnet-outdated#713
* Add Claude Code GitHub Workflow by @​slang25 in
dotnet-outdated/dotnet-outdated#716
* Preserve MSBuild variable references when upgrading packages by
@​hwoodiwiss in
dotnet-outdated/dotnet-outdated#714

## New Contributors
* @​hwoodiwiss made their first contribution in
dotnet-outdated/dotnet-outdated#714

**Full Changelog**:
dotnet-outdated/dotnet-outdated@v4.7.0...v4.7.1

Commits viewable in [compare
view](dotnet-outdated/dotnet-outdated@v4.7.0...v4.7.1).
</details>

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=dotnet-outdated-tool&package-manager=nuget&previous-version=4.7.0&new-version=4.7.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
github-actions Bot pushed a commit to ptr727/LanguageTags that referenced this pull request Mar 3, 2026
Updated
[dotnet-outdated-tool](https://github.com/dotnet-outdated/dotnet-outdated)
from 4.7.0 to 4.7.1.

<details>
<summary>Release notes</summary>

_Sourced from [dotnet-outdated-tool's
releases](https://github.com/dotnet-outdated/dotnet-outdated/releases)._

## 4.7.1

## What's Changed
* Fix --no-restore corrupting .csproj in CPM projects by @​slang25 in
dotnet-outdated/dotnet-outdated#713
* Add Claude Code GitHub Workflow by @​slang25 in
dotnet-outdated/dotnet-outdated#716
* Preserve MSBuild variable references when upgrading packages by
@​hwoodiwiss in
dotnet-outdated/dotnet-outdated#714

## New Contributors
* @​hwoodiwiss made their first contribution in
dotnet-outdated/dotnet-outdated#714

**Full Changelog**:
dotnet-outdated/dotnet-outdated@v4.7.0...v4.7.1

Commits viewable in [compare
view](dotnet-outdated/dotnet-outdated@v4.7.0...v4.7.1).
</details>

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=dotnet-outdated-tool&package-manager=nuget&previous-version=4.7.0&new-version=4.7.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
hwinther pushed a commit to hwinther/test that referenced this pull request Mar 7, 2026
Updated
[dotnet-outdated-tool](https://github.com/dotnet-outdated/dotnet-outdated)
from 4.6.9 to 4.7.1.

<details>
<summary>Release notes</summary>

_Sourced from [dotnet-outdated-tool's
releases](https://github.com/dotnet-outdated/dotnet-outdated/releases)._

## 4.7.1

## What's Changed
* Fix --no-restore corrupting .csproj in CPM projects by @​slang25 in
dotnet-outdated/dotnet-outdated#713
* Add Claude Code GitHub Workflow by @​slang25 in
dotnet-outdated/dotnet-outdated#716
* Preserve MSBuild variable references when upgrading packages by
@​hwoodiwiss in
dotnet-outdated/dotnet-outdated#714

## New Contributors
* @​hwoodiwiss made their first contribution in
dotnet-outdated/dotnet-outdated#714

**Full Changelog**:
dotnet-outdated/dotnet-outdated@v4.7.0...v4.7.1

## 4.7.0



Commits viewable in [compare
view](dotnet-outdated/dotnet-outdated@v4.6.9...v4.7.1).
</details>

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=dotnet-outdated-tool&package-manager=nuget&previous-version=4.6.9&new-version=4.7.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
slang25 added a commit to GREsau/dotnet-outdated that referenced this pull request Nov 8, 2026
Resolves conflicts with variable tracking (dotnet-outdated#714), the CPM --no-restore
direct write (dotnet-outdated#713), file-based apps (dotnet-outdated#752/dotnet-outdated#755) and short TFM names (dotnet-outdated#750).
AddPackage now takes the VersionRange through all of master's new paths;
single-version paths use the range's lower bound for now (refined in
follow-up commits). Restores the System.Text.Json using needed by master's
tests and adapts DotNetPackageServiceTests to the new signature.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

Update to centralized package management no longer works after release 4.7.0

1 participant