Swashbuckle.AspNetCore icon indicating copy to clipboard operation
Swashbuckle.AspNetCore copied to clipboard

swashbuckle.Aspnetcore cli not able to recognize private nuget feed reference and failed to resolve, not generating swagger.json file

Open SSanjeevi opened this issue 4 years ago • 9 comments

swashbuckle.Aspnetcore cli not able to recognize private nuget feed reference and failed to resolve, not generating swagger.json file

CLI Command:

dotnet swagger _tofile projfolder\bin\Debug\netcoreapp3.1\myassembly.dll "v1 1.0.xml"

Following error occurs on above command:

Unhandled exception. System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load file or assembly 'mycommon, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

The mycommon assembly is referred using private feed Nuget. Also placed the Nuget.config file in the project folder.

Is there any way to pass Nuget.config file to this tool?

Version used command for info on version: dotnet tool install --version 5.5.0 Swashbuckle.AspNetCore.Cli

SSanjeevi avatar Jun 21 '20 12:06 SSanjeevi