RazorGenerator.MSBuild uses outdated versions of System.Web.Mvc and System.Web.Razor
See original GitHub issueI have this issue were a view, that is using specific features of Razor syntax for Mvc, is getting different behaviour when it’s compiled at build time by RazorGenerator.MSBuild
and at runtime by the JIT.
After some investigation I’ve realized that the difference was originated from the fact that my project uses System.Web.Razor
with version 3.0.20129.0 , but the RazorGenerator.MSBuild is stuck with version 3.0.11001.0, which is an older one. Since those assemblies are packaged inside your Nuget the flexibility upgrading the version use at the consumer side is not there.
This generates severe inconsistencies and errors in some cases. Is there any known way of getting around this issue with current package?
I’m available to submit a PR with my suggested fix, please let me know your opinion and if this would be welcome.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
Fixed in https://github.com/RazorGenerator/RazorGenerator/commit/032180e4d36638d894f50eabd97bbc68d833d2bc. https://www.nuget.org/packages/RazorGenerator.MsBuild/2.5.0 should have the updated versions.
@pranavkm, perfect then. Will update the whole set of dependencies to the latest.