-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support for non mvc web apis #26
Comments
What do you mean exactly by that? As far as I know, Asp.Net Core MVC is still there, but they allow developers to cherry-pick the components they load. For example, calling All of those new, more targetted helpers should still return an
As a matter of fact, I should be able to remove that second call for all versions of .Net Core, which is something I should do sooner rather than later (now that I think about it).
I'll answer this one in two parts:
Why two projects?
As a bonus, those two libraries would become projects that peoples can use to get started. If you have some more time to invest, please let me know. |
Sorry, bad wording on my part. Yes, mvc is still here for sure. But as you say it was required to use it in an api project before. For controllers and routing I believe. Now
Glad to hear you want to add support. I'm happy to help by providing minimal repros 😊 But forthcoming week is not looking good for time. I will look into it over the holidays and keep you posted. Thanks! |
Ok, that's a good starting point.
Perfect, I'm busy too, but with repro projects, it should be easy to fix (I hope) |
@Carl-Hugo Happy new year 🥳 Sorry this took a while, but the holidays got the better of me 😴 I have added the sample projects. They reside over at this fork for now. Starting the 3.1 api will reproduce the NullReferenceException we discussed before. When you have some time, let me know what you'd like to do. |
@petterhoel thanks and happy new year to you too! I'll take a look as fast as possible and come back to you with a more solid ETA. |
Thanks @Carl-Hugo ! Sorry I missed such a basic thing, but it was not clear to me. On the up side, I guess it motivates an effort to merge Re the extention and async issue: I wanted to keep all surrounding code the same and was expecting the async-issue to arise as I've run into it before. The reason is a breaking change where kestrel and iis-servers default setting now is to not allow sync writes. More info can be found here if you are curious. Thanks again for your time and help |
I encountered that while upgrading .Net Core 2.2 apps to 3.0 as well, and assumed it was a breaking change. Thanks for the link, I'll take a look at it (I like to stay informed, but there is so much to keep up to date about that it's easy to miss some stuff out). |
I have used this package to get language specific validation messages in dotnet core web apis. The client is usually a SPA on a separate js-framework app running on a separate domain. We expose the messages from ForEvolve on a custom property on an extended
ProblemDetails
object. This is handled by error handler middleware.Dotnet core 3 does not use mvc anymore for these kinds of projects, so we are back to basic error messages provided by Microsoft.
I would love a general approach or custom extension for this use case. Something not scoped to mvc.
As a consumer something that looks something like this:
services.AddForEvolveLocalization():
in place ofservices.AddMvc().AddForEvolveMvcLocalization();
Would love to know if there are any plans for anything like this?
The text was updated successfully, but these errors were encountered: