Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update nuget smoke test dependency files #197

Merged
merged 1 commit into from Mar 26, 2024

Conversation

brettfo
Copy link
Contributor

@brettfo brettfo commented Mar 22, 2024

The file Directory.Packages.props is no longer explicitly listed as a dependency file. This is due to the dependency ultimately needing to be declared in a .csproj file (or something imported by it) and it requires a value for the <TargetFramework> property, which a Directory.Packages.props file does not contain.

The resultant PR is still the same, though, and may end up modifying the package version in Directory.Packages.props.

This corresponds to dependabot/dependabot-core#9347 and must be taken in parallel.

@@ -535,32 +500,6 @@ output:
- name: xunit.abstractions
requirements: []
version: 2.0.2
- name: Microsoft.VisualStudio.Text.Data
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reported dependencies have changed because the Directory.Packages.props file contains dependencies that aren't listed in the relevant project.csproj so the new list is more accurate because only a .csproj can contain (or lead to) dependencies.

A Directory.Packages.props file could contain a line line this:

...
<PackageVersion Include="Some.Unused.Package" Version="1.2.3" />
...

The previous version of the NuGet updater (see linked PR) would report this package as a dependency, but it really shouldn't be listed because the starting .csproj doesn't contain the corresponding <PackageReference> element and if the Version attribute was to be updated, no real change would occur in the final package resolution.

@brettfo brettfo marked this pull request as ready for review March 26, 2024 16:56
@brettfo brettfo force-pushed the dev/brettfo/nuget-dependencies branch from 92dea37 to 7fd07c9 Compare March 26, 2024 16:56
@abdulapopoola abdulapopoola merged commit edfaf7b into main Mar 26, 2024
69 checks passed
@abdulapopoola abdulapopoola deleted the dev/brettfo/nuget-dependencies branch March 26, 2024 22:14
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.

None yet

3 participants