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

  • Home
  • SEARCH
  • 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 9270797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:27:33+00:00 2026-06-18T15:27:33+00:00

I want to ship pre-compiled views. I’ve seen a few questions regarding specifying Changing

  • 0

I want to ship pre-compiled views. I’ve seen a few questions regarding specifying

Changing the following in the csproj

<MvcBuildViews>true</MvcBuildViews>.

and

and modifying the web.config (since i am using entityframework)

<compilation debug="true" targetFramework="4.0">
      <buildProviders>
        <remove extension=".edmx"/>
      </buildProviders>
 </compilation>

it now takes longer to compile which i was expecting however im not sure if it is working correctly

  1. can i presume i am right in saying that if configured correctly it should actually build the views into the binary rather than just doing a precompilation validation?
  2. if true then should i prevent the webdeployment from shipping the cshtmls? will the presence of them onsite cause a recompile?
  3. if so this should result in a faster start time for deployed mvc applications? as they don’t need to compile the views?
  4. should I add false to the csproj as well? i saw an article which suggested i should change it from true to false, but it isn’t present in my csproj.

Cheers
Tim

  • 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-18T15:27:34+00:00Added an answer on June 18, 2026 at 3:27 pm

    RazorGenerator seemed to be the only option to my original question which was to ship compiled views as binaries.

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

Sidebar

Related Questions

Below is a method that I want to ship off into a background worker
I currently have the following code below and I want to update the specific
I want to ship static read-only data for use in my Core Data model.
Background: I want to link a few static libs into a shared lib. The
I want to ship some default data with my app. This data can be
I want to ship a single 32/64-bit universal binary of my desktop Mac OS
I've a FreeMarker library that I want to ship with my product, and I'm
I want to ship my iPhone app with some preferences but I don't need
I have developed a number of frameworks that I want to ship with my
I want to have a curved shield in front of my space ship to

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.