Skip to content

How does dependabot know a nuget dependency is a "development" dependency? #10285

Answered by BinToss
BinToss asked this question in Q&A
Discussion options

You must be logged in to vote

2024-07-28 | Analysis - Part 1

CompatibilityChecker.CheckAsync gets an isDevDependency bool from CompatibilityChecker.GetPackageInfoAsync.

public static async Task<bool> CheckAsync(
PackageIdentity package,
ImmutableArray<NuGetFramework> projectFrameworks,
NuGetContext nugetContext,
Logger logger,
CancellationToken cancellationToken)
{
var (isDevDependency, packageFrameworks) = await GetPackageInfoAsync(
package,
nugetContext,
cancellationToken);
return PerformCheck(package, projectFrameworks, is…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by BinToss
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants