Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No package metadata found warning for project references #53

Open
georg-eckert-zeiss opened this issue Jul 22, 2024 · 1 comment
Open

Comments

@georg-eckert-zeiss
Copy link

georg-eckert-zeiss commented Jul 22, 2024

Hi everyone,

when analyzing my project with nuget-inspector I get lots of warnings like the following:

nuget-inspector \
  --project-file=src/B/B/B.csproj \
  --nuget-config="src/nuget.config" \
  --json="nuget-inspector-results/results.json"

Effective project framework: net8.0-windows10.0.22621 
Loading nuget.config: src/nuget.config

PopulateResources: Loaded 2 package sources from nuget.config
    AddSourceRepo: adding new https://api.nuget.org/v3/index.json
    AddSourceRepo: adding new https://pkgs.dev.azure.com/internal/A/_packaging/A-Dependencies/nuget/v3/index.json

ProjectScanner: Using filename as project name: B
      No project version found

Running scan of: src/B/B/B.csproj with fallback: False
  Using project-assets.json lockfile at: /home/myuser/src/B/B/obj/project.assets.json
LockFile: NuGet.ProjectModel.LockFile
LockFile.Path: /home/myuser/src/B/B/obj/project.assets.json
LockFile.PackageSpec: NuGet.ProjectModel.PackageSpec
LockFile.PackageSpec.TargetFrameworks: System.Collections.Generic.List`1[NuGet.ProjectModel.TargetFrameworkInformation]
    Found #27 dependencies with data_source_id: dotnet-project.assets.json
    Project resolved: B
      Fetching package metadata for: System.Reactive.6.0.0
      Fetching package metadata for: System.Reactive.6.0.0
    Nuspec copyright: Copyright (c) .NET Foundation and Contributors.
    Nuspec repo.type: git
    Nuspec repo.url: https://github.com/dotnet/reactive
    Nuspec repo.branch: 
    Nuspec repo.commit: e29c7a50db88513a87651c366088da8b7f40b1f0
# ISSUES STARTING HERE
      Fetching package metadata for: B.Application.1.2.3
No package metadata found for B.Application.1.2.3.
        Failed to get remote metadata for name: 'B.Application' version: '1.2.3'. 
      Fetching package metadata for: B.Core.1.2.3
No package metadata found for B.Core.1.2.3.
 

<truncated>

This is to be expected since those are my own projects which reside in the same parent directory. What is the correct way to handle this?

Best regards.

@georg-eckert-zeiss georg-eckert-zeiss changed the title No package metadata found warning for my own projects No package metadata found warning for project references Jul 22, 2024
@sschuberth
Copy link

Sounds a bit related to #37.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants