-
Notifications
You must be signed in to change notification settings - Fork 22
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
Package Version Conflict #19
Comments
Please read this part of the docs carefully. You've been bitten by this:
You're referencing Otherwise you'll end up with mixed versions of dependencies which leads to Bottom line: add the following package references to your csproj and you're good to go.
|
Hm; RTFM you say? ;) Thanks -- that worked. Was hoping you'd release a new version on the back of the net6 release? :) |
Unfortunately adding other target frameworks like .NET 6 wouldn't really help. Since the base metapackage Microsoft.NETCore.App doesn't references the Microsoft.Extensions.* packages, only the Microsoft.AspNetCore.App does, I'd be compelled to also add a Another option would be to make releases with updated dependency versions every time MS release a new version (even a patch version) of the runtime. But this would be kinda nonsensical too. So I'm afraid currently there's no better solution than explicit references in non-ASP.NET Core projects. Anyway, I've updated the installation instructions in the docs to make this a bit clearer. |
with csproj
yields this exception on the
GetRequiredService
When changing the csproj file to the following (note the Hosting io. Configuration.Json, DependencyInjection, Logging) and cleaning the solution, it works as expected
The text was updated successfully, but these errors were encountered: