Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8405359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:50:04+00:00 2026-06-09T22:50:04+00:00

I am giving: RazorGenerator a try. The quick start guide mentions to switch the

  • 0

I am giving:

RazorGenerator

a try. The quick start guide mentions to switch the build action to ‘None’. However, this means that the views are not published. Is the build action ‘Content’ correct as this allows publishing?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:50:06+00:00Added an answer on June 9, 2026 at 10:50 pm

    The purpose behind Razor Generator is that it pre-compiles your razor views, translating the markup in your cshtml files into C# code that gets executed when the view is rendered.

    This can happen at design time, when you save a view, if you set the custom tool property for that view to RazorGenerator. Alternatively, it can happen at build time by integrating the Razor Generator MSBuild target.

    As you mentioned, without Razor Generator you normally set the build action for your views to “Content”. The markup is parsed at runtime, when the view is first requested, and a compiled view is made available in a dynamically generated assembly. If you use Razor Generator, there is no need to copy the markup around because the compiled views are already part of your web assembly. This is why you can set the build action to “None” on your views.

    Other Details:

    • Razor Generator extends ASP.NET MVC by adding its own PrecompiledMvcEngine to the collection of ViewEngines. This is used to locate the compiled views as they’re requested.

    • There are some properties of the PrecompiledMvcEngine that, if set, will have the engine check if the view exists on disk and use it if it is newer than the pre-compiled view it has in the assembly. This can be useful at design time, so that you can see changes made to your views without rebuilding everything.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Gradle is giving me fits. I have a build.gravle that includes the java plug-in
This query is giving me an error 1064: UPDATE `the_table_name` SET `build` = '7'
I'm giving a try to IntelliJ IDEA in order to completely switch to it
Giving this method, I declare a variable answer that will contain a String value.
Giving a tree that content no cycles (eg a minimum spanning tree : http://fr.wikipedia.org/wiki/Fichier:Minimum_spanning_tree.svg
why is this query giving weird results.. SELECT max(greatest(home_team_total,away_team_total)) AS max_team_score, id FROM `match`
I'm just giving a try to unit testing in javascript/coffeescript with jasmine, very nice.
Giving this kind of XML file : <data> <row val=3/> <row val=7/> <row val=2/>
I am giving Vim xdebug plugin a try, but when I put cursor on
This is giving just the output of ls : String[] cmd={bash,-c,ls,-l}: ProcessBuilder pb=new ProcessBuilder(cmd);

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.