Skip to content

ReportGenerator.Core nuspec has wrong dependency version for DotNetConfig #705

@afscrome

Description

@afscrome

I'm using ReportGenerator.Core in an application and am getting the error Could not load file or assembly 'DotNetConfig, Version=1.2.0.0, Culture=neutral, PublicKeyToken=41dc05ca892b85e5'. The system cannot find the file specified.

If you go to https://www.nuget.org/packages/ReportGenerator.Core, it lists the required version of DotNetConfig as >= 1.0.6, however the csproj lists it as 1.2.0

<PackageReference Include="DotNetConfig" Version="1.2.0" />

Looks like dependency versions in the nuspec needs to be updated to match those used by the csproj -

<dependency id="DotNetConfig" version="1.0.6" />

An alternative solution would be to use dotnet pack instead of a nuspec which should automatically infer all the versions etc. from the csproj.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions