Commit b0bc0d1
authored
Enable transitive pinning for central package management (microsoft#6225)
## π Description
<!-- Describe what this PR changes, why, and any limitations. -->
This PR enables transitive pinning for central NuGet package management.
This makes the version declared in `Directory.Packages.props` apply to
transitive dependencies, without having to add them as direct
dependencies of a project.
This solves a CG alert about `System.Security.Cryptography.Xml` in
`AppInstallerCLIE2ETests.csproj`.
I'm also removing references that I believe were there only to pin their
version with CPM
## π References
<!-- Link related issues, PRs, or docs. Use "Resolves #1234" to
auto-close. -->
https://learn.microsoft.com/nuget/consume-packages/central-package-management#transitive-pinning
## π Validation
<!-- How did you test? List manual steps or note automated test
coverage. -->
Fully untested because a VS update left me unable to build the project
:-)
## β
Checklist
<!-- Place an "x" between the brackets to check an item. e.g: [x] -->
- [ ] Signed the [Contributor License
Agreement](https://cla.opensource.microsoft.com)
- [ ] Linked to an issue
- [ ] Updated [Release Notes](../doc/ReleaseNotes.md) (if applicable)
- [ ] Updated documentation (if applicable)
- [ ] Updated [Copilot instructions](.github/copilot-instructions.md)
(if build, architecture, or conventions changed)
## π Issue Type
<!-- Select the type that best describes this PR -->
- [ ] Bug fix
- [ ] Feature
- [ ] Task
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/winget-cli/pull/6225)1 parent 933c96b commit b0bc0d1
6 files changed
Lines changed: 2 additions & 14 deletions
File tree
- src
- AppInstallerCLIE2ETests
- Microsoft.Management.Configuration.Processor
- Microsoft.Management.Configuration.UnitTests
- WinGetSourceCreator
- WinGetUtilInterop.UnitTests
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
51 | | - | |
52 | 49 | | |
53 | 50 | | |
54 | 51 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | 23 | | |
26 | | - | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | | - | |
16 | | - | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
| |||
0 commit comments