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.
I'm using
ReportGenerator.Corein an application and am getting the errorCould 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
DotNetConfigas>= 1.0.6, however the csproj lists it as 1.2.0ReportGenerator/src/ReportGenerator.Core/ReportGenerator.Core.csproj
Line 85 in 24d447f
Looks like dependency versions in the nuspec needs to be updated to match those used by the csproj -
ReportGenerator/src/Deployment/nuget/ReportGenerator.Core.nuspec
Line 34 in 24d447f
An alternative solution would be to use
dotnet packinstead of a nuspec which should automatically infer all the versions etc. from the csproj.