-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors after upgrading from RC2 to RTM #5884
Comments
Looks like you still have many rc2 packages.., |
Yep, you need to be on a full set of |
I have the problem #2 too after the update of an application to rtm and openiddict alpha2-0331
|
@lucamorelli you should remove the If you still see issues after that, then open up a new issue. |
@lucamorelli FYI, OpenIddict was just updated to target ASP.NET Core/.NET Core/Entity Framework Core RTM. The error you're using should be fixed when moving to the latest OpenIddict builds. |
Here is how I got past this one:
|
Steps to reproduce
I am reporting two issues that appear to be related. Project fails on build or startup so the step to reproduce is to attempt to build or run.
The issue
ERROR 1:
Error CS0121 The call is ambiguous between the following methods or properties: 'Microsoft.AspNetCore.Hosting.WebHostBuilderExtensions.UseContentRoot(Microsoft.AspNetCore.Hosting.IWebHostBuilder, string)' and 'Microsoft.AspNetCore.Hosting.HostingAbstractionsWebHostBuilderExtensions.UseContentRoot(Microsoft.AspNetCore.Hosting.IWebHostBuilder, string)'
The error occurs in Program.cs of my web project:
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory()) //error here
.UseIISIntegration()
.UseStartup()
.Build();
host.Run();
}
}
ERROR 2:
If I comment out the following line in Startup.cs in the Blog project my project will build:
.UseContentRoot(Directory.GetCurrentDirectory()) //error here
However, it will not load and it fails with the same error message as found in this post:
#5881
The error message is:
Could not load type 'Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions' from assembly 'Microsoft.Extensions.DependencyInjection, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
Further technical details
I followed the instructions found here: https://docs.efproject.net/en/latest/miscellaneous/rc2-rtm-upgrade.html
After changing the EF package versions my projects would not build. The error message was that the logging and memory cache packages needed to be upgraded so I changed these packages as follows:
"Microsoft.Extensions.Logging": "1.0.0" (Blog, Blog.API)
"Microsoft.Extensions.Caching.Memory": "1.0.0", (Blog.API)
"Microsoft.Extensions.Caching.Abstractions": "1.0.0" (Blog.API)
EF Core version: (found in project.json or packages.config)
Operating system: Windows 10
Visual Studio version: 2015 Update 3
Other details about my project setup:
There are several projects in my solution. The three that are mentioned in this post are Blog, Blog.API, and Blog.Services (class library DBContext here).
Blog Project.json
Blog.API Project.json
Blog.Services Project.json
The text was updated successfully, but these errors were encountered: