---
title: "Publish Project Dependencies"
---
Scans for NuGet, npm, or PyPI package dependencies of a project and sends information about them to a ProGet instance.
ProGet::Scan(
Project: <text>,
[To: <text>],
[ProGetUrl: <text>],
[ApiKey: <text>],
[ProjectName: <text>],
[Release: <text>],
[ProjectType: <text>],
[ScanType: <integer>],
[DoNotScanNodeModules: <true/false>]
);
Name | Format | Script Usage | Usage Notes |
---|---|---|---|
☆ Project path | text | Project | e.g. src/MyProject.csproj". This argument is required. |
ProGet connection | text | To | Value note: "default". |
ProGet base URL | text | ProGetUrl | Not specifying will "Use URL from ProGet connection". |
API key | text | ApiKey | Not specifying will "Use token from ProGet connection". |
Project name | text | ProjectName | Value note: "$ApplicationName". |
Release number | text | Release | Value note: "default ($ReleaseNumber.$BuildNumber or $BuildNumber)". |
Project type | text | ProjectType | Value note: "application". |
Scan type | integer | ScanType | Default value is "Auto". |
Do Not Scan node_modules (npm only) | true/false | DoNotScanNodeModules |
# Publish NuGet dependencies for MyProject.csproj in the Libraries feed of the LocalProGet instance
ProGet::Scan
(
Project: src/MyProject.csproj
);