-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Changes to Microsoft.AspNetCore.Mvc.Internal #8678
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
Thanks for contacting us, @Stamo-Gochev. |
Here is a list of the main classes: They are used for building custom expressions for sorting, grouping, filtering, etc. Some of the code from the pubinternal classes are complex enough and we relied on leveraging them to build these expressions. What I can suggest as a better approach for handling the main point from the discussion:
is to extract these internal namespaces in separate nuget packages as they were before making them internal. This will allow third-party libraries to reference the package with a specific version - if an update is made (as they are used by other parts of ASP.NET internally) that introduces a breaking change, then the third-party lib can stick to the previous version or update and see if this breaking change affects it at all. |
We addressed this particular gap as part of aspnet/Mvc#8724. 3.0 offers a
The latter two return an instance of
We specifically wanted to reduce the volume of API that MVC exposed that was unsupported. Extracting the feature to a separate package would essentially require for us to support it in some format. If you absolutely must use an unsupported API, copying the source code works just as well. |
The |
One more thing about the changes to |
If you have access to |
@Stamo-Gochev feel free to reopen if you have further questions |
@pranavkm Can you provide some details whether Microsoft.AspNetCore.Mvc.ViewFeature will be upgraded to 3.0 as a standalone package? Is it supposed to remain locked to 2.x for the LTS and the way to get version 3.0 is by installing Microsoft.AspNetCore.App 3.0? This seems like the only way to get the new version of the APIs - the suggestion from aspnet/Mvc#8724 (comment) is what works. |
It will be available as part of the shared framework in 3.0. Here's a couple of issues that detail what this entails: |
I need the following from Microsoft.AspNetCore.Mvc.Internal;
I am trying to port Orchard Core Framework to ASP.NET Core 3.0 Also from Microsoft.AspNetCore.Mvc.Razor.Internal
|
@dodyg could you please file a new issue? |
This is terrible. How do you rip out features like this without easily being able to make it work? Upgrading to 3.0 is practicality a rewrite. Microsoft was a lot better with this. Seems like you do these things without caring with the amount of code already out there. |
@joetherod could you file a separate issue if there are other APIs that affect your particular scenarios? |
Uh oh!
There was an error while loading. Please reload this page.
Third-party libraries that relied on the (previously) public classes from
Microsoft.AspNetCore.Mvc.Internal
are now broken after the update in 8d66f10This prevents us from supporting .NET Core 3.0.
The discussion regarding this change is in #4932
Changes for similar pubinternal types also affect us: b18526c
@pranavkm Can you suggest an alternative to using the now internal classes? Copying these files as public in the third-party library code raises both license and maintenance issues.
The text was updated successfully, but these errors were encountered: