FindPackageByIdResource resources have their CacheContext and Logger properties set by the project.json resolver. This is the only scenario where it is used in the product, however when using these resources directly from the protocol packages this property is null and they cannot be used.
These resources should create a default context if one is not given to make it usable in other scenarios.
Steps
- Install-package nuget.protocol.core.v3 3.2.0
- Use the FindPackageByIdResource
var findResource = repo.GetResource<FindPackageByIdResource>();
var findAllVersions = findResource.GetAllVersionsAsync(packageId, CancellationToken.None).Result;
FindPackageByIdResource resources have their CacheContext and Logger properties set by the project.json resolver. This is the only scenario where it is used in the product, however when using these resources directly from the protocol packages this property is null and they cannot be used.
These resources should create a default context if one is not given to make it usable in other scenarios.
Steps