-
Notifications
You must be signed in to change notification settings - Fork 260
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
.NET Core 3 support #267
Comments
I should be able to open a PR once .NET Core 3 comes out of preview. Updated the project to support netstandard2.0 as well as netcoreapp3.0 |
I just updated a blazor-server app which uses RazorLight from netcore 3.0-preview8 to 3.0-preview9 -- that app itself has gone successfully through all previews of netcore 3.0 of the last 10 months. Now out of a sudden I can't use RazorLight anymore, I just get an InvalidOperationException "Cannot find reference assembly 'Microsoft.AspNetCore.Antiforgery.dll' file for package Microsoft.AspNetCore.Antiforgery.Reference" at
|
Had the same issue for antiforgery after upgrading to asp.net 3.0 rc. Can anyone help? |
@zhangsquall for me adding |
It worked! |
Eta for new release that works with ,NET Core 3.0? Namespace missing in 3.0: |
@jsheetzati 3.0 is RTM. Eta for PR approval? |
Changes are in this branch with latest .NET Core 3 packages. I have not had an opportunity to verify the RTM packages work without additional changes yet. https://github.com/altriadeveloper/RazorLight/tree/spike-netcore3squashed |
I pulled master and got it to compile with 3.0, but a lot of tests failed. I didnt try this PR. I extended it to support what I needed. Cleaner and works with Core 3.0. |
I'd appreciate if someone sends a PR for 3.0, don't have time at all for this project for now |
Someone is able to make RazorViewToStringRenderer.cs work with .NET Core 3.0 getting the views from a Razor UI Class Library? Was working on 2.0, 2.1 and 2.2, now not anymore, IRazorViewEngine does not find the view. |
Just to confirm i've been using |
I also have this missing namespace |
I finally used @whyseco version. https://www.nuget.org/packages/RazorLight.NetCore3/ |
@maxence51 giving this a test run. Thank you for sharing |
@maxence51 I'm planning to merge together various fixes for RazorLight. I just got PR access last week from @toddams . I have another project I'm helping out with on top of my day job. |
Thanks @jsheetzati, I think this project deserves to be maintained. |
@jzabroski |
I only have PR merge permission so far. Ivan would need to give me organization level role for me to add you. |
Ah some movement, I'll try to keep an eye on things and update FluentEmail as we go. Thanks for taking on the work! |
🐢 |
Upgraded in my local. Not yet tested, but it compiles. Huzzah! Failing Tests (8 of 135)Checkbox checked indicates resolved on my machine.
My notes:
My questions:
|
I would be okay with a package being versioned for 2x and 3.y as I don't expect to revert back to 2.0 anytime though. |
@jzabroski this issue can now be closed. |
@gjunge Thanks for all your help! Let me know if you encounter and issues. At some point we should probably drop the beta tag. |
Happy to help. The truth to be told is that I currently not use the project and haven’t used it yet. We’re moving our projects from full framework to .NET Core, and in one of those projects we use some other Razor library which is not .NET Standard compatible, and that is why I came here and wanted to help with that .NET Core 3 support. |
And regarding the beta tag, I somewhere read a reason for it, but can’t remember where/why. However I also thought of nice Microsoft DI support, would that be something that fits in the vision of the project? |
Is this released? On version 2.0.0-beta2, i'm still getting "Cannot find reference assembly 'Microsoft.AspNetCore.Antiforgery.dll'" when using "UseFileSystemProject". When i use "UseEmbeddedResourcesProject" it cannot find my templates. |
@DanielToft Please open a new issue and file a bug report. Yes, .NET Core 3 support is released - you can see that from nuget.org dependencies accordian. |
Same for me. It can't find my templates. Did you resolve this somehow? |
@billbrinck Please open a new issue and file a bug report with repro steps. Alternatively, look at the example in the source and look at what could be different between your project and this one. |
I see that you did create a discussion here: #452 |
Is your feature request related to a problem? Please describe.
Add full ASP.NET Core 3 support.
Describe the solution you'd like
Most of the used Microsoft.AspNetCore.* nuget packages are encompassed into the FrameworkReference and no longer available as Nuget packages. dotnet/aspnetcore#3756. The project also needs to target netcoreapp3.0 in order to use the FrameworkReference.
The text was updated successfully, but these errors were encountered: