I work on the migration of an .NET CORE API. Firstly, I have this error message :
The name 'WebHost' does not exist in the current context
So Visual Studio suggest me to have this namespace :
using Microsoft.AspNetCore.Hosting.Internal; I put it in my file, after that I have this error message :
'WebHost' does not contain a definition for 'CreateDefaultBuilder'
I don't know why it's doing that. Can I have some help ?
public static IWebHost BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args);