No way to detect vulnerabilities in .NET Tool packages since dependencies are not listed #13916
Labels
Area:PackageDefinition
Area:RestoreTool
V1/V2 tool restore
Partner:DotNet
Priority:2
Issues for the current backlog.
Product:dotnet.exe
Type:Bug
NuGet Product Used
dotnet.exe
Product Version
8.0.403
Worked before?
I don't think that it has worked before as no .NET Tool seems to have dependency on nuget.org
Impact
It bothers me. A fix would be nice
Repro Steps & Context
System.Text.Json
PackageId
element to the csproj. The csproj should look like this :dotnet pack
The resulting .nupkg list
System.Text.Json
as a dependecy<PackAsTool>true</PackAsTool>
to<PropertyGroup>
element in the .csproj. The csproj should look like this :dotnet pack
The resulting .nupkg doesn't contain any dependecy
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: