Closed Kaliumhexacyanoferrat closed 3 years ago
Hi, thats probably due to I missed something with references on init. Will recheck it again.
did it work on 2020.6.1? there was a pull request to remove netstadrard reference if under linux and it never changed from that time (as I can see) https://github.com/adoconnection/RazorEngineCore/commit/7975beb8035d3ef8b0cea79142d56e597510b8c5#diff-da023b3e46c83993108046dee9e55032
However I have the same error as you do. If I return netstandard reference back, the error dissapears. Im confused.
@daghb does 2020.9.1 work for your linux environment?
@adoconnection: It did work on 2020.6.1. As dependabot creates a PR for the new version, I can rule out changes in the environment (such as the SDK version).
I have no idea how is this possible :) here are all the changes, 2020.6.1 - is July version https://github.com/adoconnection/RazorEngineCore/commits/master/RazorEngineCore/RazorEngineCompilationOptions.cs
I can have a look later on - what does RuntimeInformation.FrameworkDescription
evaluate to in you Linux environment? 🤔
ok, the mystery revealed. 2020.6.1 release had "wrong code"
Build with 2020.10.1 works on Windows and Linux. Thank you very much!
After updating to version
2020.9.1
, I get the following exception when rendering templates:This happens on Linux only (see this build), the same logic works on Windows as expected (with identical SDK versions etc.).
Do you have an idea how to overcome this issue? I tried to tweak the assembly references, but I suspect the compilation process of the template is missing some .NET Standard reference.