-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Record NuGet PackageDownloads (#1296)
* Record NuGet PackageDownloads Read PackageDownloads from the assets file and record them as top-level development dependencies.
- Loading branch information
Showing
5 changed files
with
192 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 43 additions & 16 deletions
59
test/Microsoft.ComponentDetection.Detectors.Tests/Mocks/TestResources.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 106 additions & 0 deletions
106
...icrosoft.ComponentDetection.Detectors.Tests/Resources/project_assets_packageDownload.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
{ | ||
"version": 3, | ||
"targets": { | ||
".NETFramework,Version=v4.7.2": {}, | ||
"net8.0": {} | ||
}, | ||
"libraries": {}, | ||
"projectFileDependencyGroups": { | ||
".NETFramework,Version=v4.7.2": [], | ||
"net8.0": [] | ||
}, | ||
"packageFolders": { | ||
"C:\\Users\\username\\.nuget\\packages\\": {}, | ||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} | ||
}, | ||
"project": { | ||
"version": "1.0.0", | ||
"restore": { | ||
"projectUniqueName": "C:\\src\\packageDownloadSample\\packageDownloadSample.csproj", | ||
"projectName": "packageDownloadSample", | ||
"projectPath": "C:\\src\\packageDownloadSample\\packageDownloadSample.csproj", | ||
"packagesPath": "C:\\Users\\username\\.nuget\\packages\\", | ||
"outputPath": "C:\\src\\packageDownloadSample\\obj\\", | ||
"projectStyle": "PackageReference", | ||
"crossTargeting": true, | ||
"fallbackFolders": [ | ||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" | ||
], | ||
"configFilePaths": [ | ||
"C:\\Users\\username\\AppData\\Roaming\\NuGet\\NuGet.Config", | ||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", | ||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" | ||
], | ||
"originalTargetFrameworks": [ | ||
"net472", | ||
"net8.0" | ||
], | ||
"sources": { | ||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, | ||
"C:\\Program Files\\dotnet\\library-packs": {}, | ||
"https://api.nuget.org/v3/index.json": {} | ||
}, | ||
"frameworks": { | ||
"net8.0": { | ||
"targetAlias": "net8.0", | ||
"projectReferences": {} | ||
}, | ||
"net472": { | ||
"targetAlias": "net472", | ||
"projectReferences": {} | ||
} | ||
}, | ||
"warningProperties": { | ||
"warnAsError": [ | ||
"NU1605" | ||
] | ||
}, | ||
"restoreAuditProperties": { | ||
"enableAudit": "true", | ||
"auditLevel": "low", | ||
"auditMode": "all" | ||
}, | ||
"SdkAnalysisLevel": "9.0.100" | ||
}, | ||
"frameworks": { | ||
"net8.0": { | ||
"targetAlias": "net8.0", | ||
"imports": [ | ||
"net461", | ||
"net462", | ||
"net47", | ||
"net471", | ||
"net472", | ||
"net48", | ||
"net481" | ||
], | ||
"assetTargetFallback": true, | ||
"warn": true, | ||
"downloadDependencies": [ | ||
{ | ||
"name": "Microsoft.Build", | ||
"version": "[17.8.3, 17.8.3]" | ||
}, | ||
{ | ||
"name": "Microsoft.Build.Framework", | ||
"version": "[17.8.3, 17.8.3]" | ||
}, | ||
{ | ||
"name": "Microsoft.Build.Utilities.Core", | ||
"version": "[17.8.3, 17.8.3]" | ||
} | ||
], | ||
"frameworkReferences": { | ||
"Microsoft.NETCore.App": { | ||
"privateAssets": "all" | ||
} | ||
}, | ||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.100/PortableRuntimeIdentifierGraph.json" | ||
}, | ||
"net472": { | ||
"targetAlias": "net472", | ||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.100\\RuntimeIdentifierGraph.json" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters