Skip to content
New issue

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

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

Already on GitHub? # to your account

Error with Microsoft.AspNetCore.TestHost 3.0.0 #45

Open
mtherien opened this issue Sep 25, 2019 · 1 comment
Open

Error with Microsoft.AspNetCore.TestHost 3.0.0 #45

mtherien opened this issue Sep 25, 2019 · 1 comment

Comments

@mtherien
Copy link

I have an application that uses .Net Core 2.1. When I run dotnet swashbuckle, I get the following error:

... SwaggerGen\SwaggerGen.csproj : NU1202: Package.Microsoft.AspNetCore.TestHost 3.0.0 is not compatible with netcoreapp2.1 ...

I assume this breaks with the release of .Net Core 3.0. Is there a way to specify the version of TestHost to use?

@sandorfr
Copy link
Member

Hi,
Swashbuckle has released a CLI a while ago and to my experience it works fine. I’d recommend you switch to that:

https://github.com/domaindrivendev/Swashbuckle.AspNetCore#swashbuckleaspnetcorecli

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

No branches or pull requests

2 participants