OpenIddict and all aspnet-contrib projects have been updated to use the .NET CLI and the new ASP.NET Core 1.0 packages , so if you recently updated your project, you probably use the latest nightly builds, which require new ASP.NET and aspnet packages contrib.
To migrate, install the .NET Core toolkit .
You will also need to update your links to use ASP.NET Core RC2 packages. Here is an example updated project.json :
"dependencies": { "AspNet.Security.OAuth.GitHub": "1.0.0-alpha4-final", "AspNet.Security.OAuth.Introspection": "1.0.0-alpha1-final", "AspNet.Security.OAuth.Validation": "1.0.0-alpha1-final", "Microsoft.AspNetCore.Authentication.Google": "1.0.0-rc2-final", "Microsoft.AspNetCore.Authentication.Twitter": "1.0.0-rc2-final", "Microsoft.AspNetCore.Diagnostics": "1.0.0-rc2-final", "Microsoft.AspNetCore.Mvc": "1.0.0-rc2-final", "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-rc2-final", "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-rc2-final", "Microsoft.AspNetCore.StaticFiles": "1.0.0-rc2-final", "Microsoft.EntityFrameworkCore.SqlServer": "1.0.0-rc2-final", "Microsoft.Extensions.Configuration.CommandLine": "1.0.0-rc2-final", "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-rc2-final", "Microsoft.Extensions.Configuration.Json": "1.0.0-rc2-final", "Microsoft.Extensions.Logging.Console": "1.0.0-rc2-final", "Microsoft.Extensions.Logging.Debug": "1.0.0-rc2-final", "OpenIddict": "1.0.0-*" }, "frameworks": { "net451": { "dependencies": { "Microsoft.NETCore.Platforms": "1.0.1-rc2-24027" } }, "netcoreapp1.0": { "dependencies": { "Microsoft.NETCore.App": { "type": "platform", "version": "1.0.0-rc2-3002702" } }, "imports": [ "dnxcore50", "portable-net451+win8" ] } }
Remember to also replace tags and use the new WebHostBuilder :
public static class Program { public static void Main(string[] args) { var configuration = new ConfigurationBuilder() .AddEnvironmentVariables() .AddCommandLine(args) .Build(); var host = new WebHostBuilder() .ConfigureLogging(options => options.AddConsole()) .ConfigureLogging(options => options.AddDebug()) .UseConfiguration(configuration) .UseIISIntegration() .UseKestrel() .UseStartup<Startup>() .Build(); host.Run(); } }
Good luck.
Pinpoint
source share