-
Notifications
You must be signed in to change notification settings - Fork 474
Update dependencies for .net core 2.0 package dependencies #1059
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
Comments
See PR #1058 |
Thank you, that's very good :) |
@xuzhg : are there any builds of this? on your myget feed there is only Microsoft.AspNet.OData but no Microsoft.AspNetCore.OData |
@JanEggers No. See the comments from #939 |
@genusP The linked PR seems to be only adding this support for Microsoft.AspNetCore.OData. Is this going to be updated for Microsoft.AspNet.OData? We're converting some of our shared libs to .NETStandard 2.0 and we've replaced Unity with Microsoft.Extensions.DependencyInjection. I need the ability to use Microsoft.Extensions.DependencyInjection 2.0.0 in conjunction with Microsoft.AspNet.OData. |
@millman82 PR #1082 add compatibility with Microsoft.Extensions.DependencyInjection 2.0.0 |
Are there any progress on this ? |
+1 |
1 similar comment
+1 |
Still completely blocked on upgrading our odata api to the latest nuget packages, due to Microsoft.AspNet.OData not supporting DI 2.x. It's not as trivial as wanting to upgrade nuget packages, we have other shared code that uses the latest nuget packages, so it means we can't even reference our other shared libraries in our odata api project, it's completely quarantined for the time being. It's not like this is a 3rd party package, this is from Microsoft itself, so it's really disappointing that you wouldn't stay up to date. Someone, please fix this, we've been waiting almost a year now.... |
Any ETA for this yet? |
P4? It should be P1, just saying 😠 |
Blocking issue for us as well. |
@kieseld You're not alone. Blocking us too here. |
Blocked also. |
Please also click on 👍 in the initial request, so owner can see at first glance this shouldn't be P4 |
@cilerler Done. |
It doesn't seem to be as simple as the package owner just upgrading the DI nuget packages. I forked their repo and tried the upgrade myself, but was blocked because the DI 2.0 nuget packages require .NET Standard 2.0 and the Microsoft.AspNet.OData project is .NET Framework v4.5. I tried upgrading it to v4.7.1 but still no dice. See my SO post, and let me know if you can think of a way around this block. |
@justintoth This is exactly what I've started to do today. The reasons you listed in your SO post are pretty much identical to mine. We have a product we are trying to upgrade to use netcore 2.0 libraries even though we still run some parts on full framework and this is where we ran into this issue. If I figure anything out I'll let you know ! It would seem that this pull request : #1082 makes it compatible with DI 2.0 so do i just need to manually build a nuget package with a different nuspec ?! |
!! Hack warning !! Thought I would post what we found when looking at ways to get around this .. you can disable some error/warning messages using the MSBuild features if you are using PackageReferences in your
So your project should now build happily so you get DI v2 + oData 6.10 .. but then the issue is the breaking change between DI 1.0 + DI 2.0. Then you can look at how to replace the Hopefully this can be achieved using what is talked about here: https://odata.github.io/WebApi/13-04-DependencyInjection/ Still would be better if this was fixed officially :) |
@stephenpope I went down this path originally, unfortunately I found that it made it so that the nuget package manager would no longer upgrade ANY package. Let me know what your experience is. |
Also blocked by this (EF Core in ASP.NET "classic") |
@christophwille @justintoth @stephenpope @cilerler @hikalkan and others Would you please try the nightly build Microsoft.AspNet.OData, version 7.0.0-Nightly201805162258. It seems work at my side, please make sure what i did correct: 1 . VS2017, create a console application with classic windows desktop class Program
{
static void Main(string[] args)
{
var builder = new ODataConventionModelBuilder();
builder.EntitySet<Customer>("Customers");
IEdmModel model = builder.GetEdmModel();
foreach (var element in model.SchemaElements)
{
Console.WriteLine(element.Name);
}
}
}
class Customer
{
public int Id { get; set; }
}
Please try and let me know any concern. |
Did a test on our real solution (heck, that's why we have source control). Target FW 4.6.2. Step 1 - added the Nuget you specified. Had to touch a total of 14 files. (old was 6.1) using System.Web.OData; -> using Microsoft.AspNet.OData; Runs as before (msgraph calls, az storage, you name it) Step 2 - added EF Core 2.0.3 (which didn't work before). That worked. Step 3 - referenced our EF Core project into the Web. Tried a context. Worked. So can confirm this fixes a real-world project. (but we cannot use the nightly, obviously) |
@christophwille Thanks for your trying. |
@xuzhg @christophwille How are you guys installing the nightly build?
|
@justintoth you need to use https://www.myget.org/F/webapinetcore/api/v3/index.json not nuget |
Just figured that out, never used a source other than nuget before. Unfortunately it didn't work for me, the nightly build still shows as not supporting DI 2.0.
|
@justintoth Please select version: 7.0.0-Nightly201805162258 to try. Not all version can work because i haven't merge my PR yet. |
Merged the PR. #1440. Please let us know if you have further concerns or questions. |
Microsoft.AspNet.OData package has following dependencies:
As you have seen it depends on older version of the packages. So, they are preventing me to upgrade my solution to use new versions of these packages.
Have you planned to upgrade it?
The text was updated successfully, but these errors were encountered: