Dreamescaper / GenerateAspNetCoreClient

DotNet tool to generate HTTP client classes from ASP.NET Core api controllers.
MIT License
63 stars 5 forks source link

Can't load MIcrosoft.extensions.Logging.LoggerFactoryOptions when running publish #1

Closed OsirisTerje closed 3 years ago

OsirisTerje commented 3 years ago

Hi! Interesting tool!

Tried it on a project and got a loading exception. The project is .net core.

image

Makes any sense ?

Dreamescaper commented 3 years ago

Seems like something is wrong with assembly resolve. (I had a lot of issues in that area due to the fact that I need to actually run the web project assembly to get Api Explorer info)

Dreamescaper commented 3 years ago

You have ASP.Net Core 3.1 project, right? Seems like I've broken 3.1 compatibility in latest release in some cases.

Dreamescaper commented 3 years ago

@OsirisTerje I've added (quite an ugly) workaround to support 3.1 projects, so I hope to have it fixed in 0.3 version. Would you be able to check it?

Dreamescaper commented 3 years ago

I expect this issue to be fixed, so I'm closing it. Please let me know if it still happens for you.