-
Notifications
You must be signed in to change notification settings - Fork 757
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
Update Dependency Injection to v3.0.0 #3147
Update Dependency Injection to v3.0.0 #3147
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change needs additionally changes to the .nuspec files to update the TargetFrameworks for them per this documentation: https://docs.microsoft.com/en-us/nuget/reference/target-frameworks
That reminds me we need to double check the nuspec for the DotNetNuke.DependencyInjection library and make sure the Microsoft library reference is at v3.0.0 |
@mitchelsellers is there any type of web.config or install/upgrade scenarios we should be concerned about with this change? |
I have started my implementation of Razor Pages Pipeline, in doing so I have been looking a lot at the Dependency Injection libs and how it relates to this PR. The My Questions
I am in support of adding the binding redirect change with this PR because it will mitigate any side-effects of 3rd party modules. If someone builds a module that pulls in a library that requires |
My opinion is that every strong-named assembly reference in DNN needs a binding redirect, otherwise we're just asking for conflicts when 3rd party extensions want to use the same dependencies that the platform uses. |
What @bdukes said |
Makes sense to me. |
I think the last thing I need to do is add a binding redirect for the Dependency Injection library to the web.config. I plan to add a new cc: @bdukes |
My latest update includes many NuGet references to updating to version I am not 100% sure how these dependencies got included in our Mvc project, maybe someone manually edited the I believe making the patch upgrade to v3.1.2 is safe and necessary for the long-term maintainability of the Mvc project. Consolidating this change across the platform is significant since those NuGet are referenced just about everyone in the project |
The build is failing due to hardcoded references to the |
I think this PR is ready to be reviewed again and merged if approved. Let me know if there is any other changes that I need to make. @mitchelsellers once we approve this PR I can make a follow-up PR to branch 9.4.x. I think that PR will just be a minimal change without all the additional code clean-ups I did in this PR. |
@ahoefling we do merge changes from 9.4.x into development (for 10) every couple weeks or when someone requests it for some reason. So I don't know if you need 2 PRs or if there is something different targetting 9.4.x and 10 ? |
I need this for Razor Pages so I would like it to go straight into |
If the reviewers group wants me to rebase this change to 9.4.x, I will but I think the side-effects of updating the |
No, I agree that the 3.0.0 upgrade should be held for version 10. I pushed a small change to a couple of references that changed due to the 4.7.2 upgrade. |
@bdukes thanks for taking care of that! If we make any changes to dependency injection for 9.4.x when we bring those changes over we will need to handle merge conflicts as well as unexpected projects that may be referencing the Dependency Injection Library. We should be able to handle that using the NuGet Package Manager using the consolidate tab, but we may still run into issues with the Mvc project. This is probably going to be a problem as I am working on a PR to refactor the |
Please hold merging this until we re-update development with latest changes from 9.4.2 |
With the release of 3.1.0 - I would argue that we need to update this to that version |
@ahoefling @mitchelsellers does this need only rebasing or a change of version or a new pr? |
@ahoefling do you know what the status will be with this DLL in relation to the .NET Core 3.0 requirements re-.NET Framework? |
…dated associated packages.config file to pull net472 reference instead of net45
(cherry picked from commit ca0ab17) # Conflicts: # DNN Platform/Website/packages.config
…t.WebPages 3.1.2 in the DDRMenu (cherry picked from commit ceb9807) # Conflicts: # DNN Platform/Modules/DDRMenu/packages.config
… others live (cherry picked from commit aeaa64e)
…n binding redirects (cherry picked from commit 7c2b15e)
Due to the .NET 4.7.2 upgrade, some projects should now reference different versions of the assemblies from NuGet packages (cherry picked from commit a023e3d)
a023e3d
to
e4dae79
Compare
@ahoefling FYI, I've rebased this on |
We have detected this issue has not had any activity during the last 90 days. That could mean this issue is no longer relevant and/or nobody has found the necessary time to address the issue. We are trying to keep the list of open issues limited to those issues that are relevant to the majority and to close the ones that have become 'stale' (inactive). If no further activity is detected within the next 14 days, the issue will be closed automatically. |
We have detected this issue has not had any activity during the last 90 days. That could mean this issue is no longer relevant and/or nobody has found the necessary time to address the issue. We are trying to keep the list of open issues limited to those issues that are relevant to the majority and to close the ones that have become 'stale' (inactive). If no further activity is detected within the next 14 days, the issue will be closed automatically. |
PR pinned and unstaled |
Thank you for this contribution, we are going to look at creating a new PR that would incorporate these changes with the new 10.0 release cycle. We thank everyone on this chain for their contributions thus far. |
Fixes: #3145 #3146
Summary
Updated Dependency Injection library to v3.0.0 and updated all
packages.config
files to targetFrameworknet472
which forces the NuGet to pull the correct versionNotable Change
The
DotNetNuke.Web.Mvc
library has been referencing an incompatible version ofMicrosoft.AspNet.Razor
for awhile now. This causes problems when trying to update NuGets. This required a simple minor version update from 3.1.1 -> 3.1.2. If this change isn't a good idea, I can try and roll it back to 3.1.1Feedback/Todo List
Microsoft.AspNet.Razor
,Microsoft.AspNet.WebPages
to v3.1.2