I am migrating a solution built using the .NET Core SDK 1.0.0-preview2-1-003177 because I want to use it in Visual Studio 2017. I am using the dotnet migrate command from the .NET Core SDK 1.0.1, it is going well. it compiles. When I run the web part with IIS Express, the classic Program.cs containing
var host = new WebHostBuilder() .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) .UseIISIntegration() .UseStartup<Startup>() .Build(); host.Run();
Build () crashes with this exception
System.MissingMethodException: 'Method not found: "System.IServiceProvider Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider (Microsoft.Extensions.DependencyInjection.IServiceCollection).
I can not find the reason at all.
oskarnrk
source share