question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RazorGenerator.MSBuild uses outdated versions of System.Web.Mvc and System.Web.Razor

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

0reactions
svrxcommented, Jun 7, 2017

@pranavkm, perfect then. Will update the whole set of dependencies to the latest.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Base class for view with RazorGenerator precompiled views
It looks that that setting base view in web.config works in latest RazorGenerator. So update your RazorGenerator package and try to have ...
Read more >
RazorGenerator Issue Tracker Rss Feed
MsBuild fails to generate when using NuGet package restore and pacakges ... Web.Mvc.Ajax and System.Web.Mvc.Html are added for WebPages project only [74].
Read more >
Newest 'razorgenerator' Questions
There is a mvc application, in which I am trying to modify in pre-compiled CSHTML page(Index.cshtml) @using System.Web.
Read more >
Running Different Versions of ASP.NET Web Pages (Razor ...
This article explains how to run ASP.NET Web Pages (Razor) websites on the same computer or server when the websites are configured to...
Read more >
There are several files at ChangePassword.cshtml with build ...
I have older MVC project and after upgrading resharper to version 2021.3 I'm seeing a lot of ... Web.Mvc; using System.Web.WebPages; using RazorGenerator....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found