You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failure updating transitive dependencies with centralized package management #561
Hello, I ran into an issue with a periodic build that does dotnet outdated -u -t -td 10 and run tests to detect breaking changes.
outdated adds transitive dependency packages to each csproj file, but it adds them with a version attribute, which then fails during dotnet restore.
Adding transitive dependencies when a project is affected by CPM needs to add the package to the Directory.Packages.props in addition to modifying the csproj files.
I seem unable to construct the issue in a new empty solution, try as I might.
It reliably happens in our existing solution using dotnet-outdated-tool 4.6.4 though
The solution has one xunit project, three .net 8 projects and one dual targetting .net8/net48 project.
It uses nuget.config source mapping with internal nuget servers only, but different feeds for different packages.
Is there some kind of debug logging we can do to try and gather additional insight?
Activity
slang25 commentedon Jun 8, 2024
Thanks for the bug report, are you able to share a repo with an minimal example of the issue?
moni-dips commentedon Jun 8, 2024
sure thing, I will see what I can do
moni-dips commentedon Jun 10, 2024
I seem unable to construct the issue in a new empty solution, try as I might.
It reliably happens in our existing solution using dotnet-outdated-tool 4.6.4 though
The solution has one xunit project, three .net 8 projects and one dual targetting .net8/net48 project.
It uses nuget.config source mapping with internal nuget servers only, but different feeds for different packages.
Is there some kind of debug logging we can do to try and gather additional insight?
Test upgrading transitive dependencies end to end
Use xml editor for CPM props file editing to fix regex parse issues
Add end-to-end tests for upgrading transitive dependencies
Use xml editor for CPM props file editing to fix regex parse issues
Add end-to-end tests for upgrading transitive dependencies
Use xml editor for CPM props file editing to fix regex parse issues
Add end-to-end tests for upgrading transitive dependencies
Use xml editor for CPM props file editing to fix regex parse issues