-
Notifications
You must be signed in to change notification settings - Fork 578
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
Why not compatible with netcoreapp1.0? #414
Comments
Same problem here. Can't add RazorEngine 4.4.0-rc1 package to .NET Core console application, neither to .NET Core class ibrary |
+1 |
Same Problem, do you have any plan to solve it ? |
a PR would be welcome. |
Why isn't it compatible? Some info would be helpfull |
One needs to add support for it (ie build the project against the netcore target and possibly modify the code to support the new target).
|
I am looking into migrating RazorEngine to support .NET Standard 2.0. I ran RazorEngine through .NET Portability Analyzer and for the most part it is compatible. There are a few areas that would need to be looked at:
|
Hi @matthid , In regards to paket, since the releases I had to use to make it work are RC and not stable, would you like me to remove the environment settings from the build.cmd/build.sh to set PAKET_VERSION="prerelease" and leave the CI builds broken until a stable release is released? Tasks (PRs)
Questions
Thanks! |
@conniey Thanks for helping out.
No, prerelease is fine and Paket 5 will hit very very soon ;)
What do you mean with Regarding
To be honest I never really liked the configuration stuff, I'm happy with whatever improves the situation. |
Do you need any help with Reflection.Emit, or CodeDom extraction? Maybe the configuration stuff shouldn't be terrible hard (I assume). I just used RazorLight in a library and the performance was not very good. |
@DeadlyChambers Hey, I was able to get it working on .NET Standard 2.0 because System.Reflection.Emit was brought back. If you are able to rewrite the DynamicWrapperService and RazorDynamicObject to not use System.Reflection.Emit, that would be awesome! (And we wouldn't have to target .NET Standard 2.0 potentially.) There are a lot of System.Configuration features used.. I added a compiler directive (NO_CONFIGURATION) to remove those for now. Here is my branch if you wanted to look at it, try it out, make DynamicWrapperService work without System.Reflection.Emit, etc. https://github.com/conniey/RazorEngine/tree/updateToNetCore My current approaches downsides:
TODOs:
|
Excellent. I will look at it tonight when I get out of work. |
Here's some instructions on how to use it so far:
Building Command Line
Testing
I am currently getting a bunch of failures when running tests against .NETCoreApp 2.0. It may be a framework issue because the tests follow the same code path in .NET 4.6.2 and work still. I have to look more into it. |
netstandard 2.0 is RTM. Any news on this issue? |
Hi, I have a branch conniey/RazorEngine/updateToNetCore that has been updated to use netstandard2.0 RTM. I am having a couple of new test failures that passed before but no longer due after the update. If you have time to look into it, that would be awesome. I have a couple of tasks I have to finish this week before I can take a look at it. TODO
|
@conniey Issue67_CollectionOfAnonymous is Microsoft.CSharp bug dotnet/corefx#23512 |
@conniey Have you played around with upgrading the Microsoft.AspNetCore.Razor packages to 2.0? I used your project to successfully get some Razor templates compiling but I'm running into a dependency conflict with some projects that make use of AspNetCore 2.0 packages that create a hard dependency on Razor 2.0 It seems like they decided to completely rewrite the Razor libraries in AspNetCore 2.0 and I would love to help with the conversion but I have no idea where to start. |
@deckertron9000 I have not been able to try it using Microsoft.AspNetCore.Razor 2.0. The thing holding me back is that I am not familiar with F# so the build (ie. FAKE) and package (ie. paket) system is touch-and-go for me. [Edit]: Let me try and get back to you. I probably have to add the packages referenced here: aspnet/Razor#1855 (comment) |
I tried to update to Microsoft.AspNetCore.Razor 2.0.1 and added all those libraries mentioned in the comment above. However it appears that they have done an overhaul of how it works and made classes like |
@conniey yeah it looks like they changed quite a bit. I've been digging into the new way to extend but it's not well documented. RazorLight seems to have updated and gotten things working for the most part. I might dig into that code and see what I can figure out. |
@conniey , @hermanho @matthid @deckertron9000 Any news on this issue? |
Package RazorEngine 4.4.0-rc1 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package RazorEngine 4.4.0-rc1 supports: net45 (.NETFramework,Version=v4.5)
One or more packages are incompatible with .NETCoreApp,Version=v1.0.
The text was updated successfully, but these errors were encountered: