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 4109036
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:44:26+00:00 2026-05-20T21:44:26+00:00

When creating a new project for MVC3 I have an option to select a

  • 0

When creating a new project for MVC3 I have an option to select a custom viewengine. I can choose between Razor and ASPX. Is there a way to add Spark to the dropdownlist?

  • 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-05-20T21:44:26+00:00Added an answer on May 20, 2026 at 9:44 pm

    The short answer is: No, not really.

    The long answer is: Yes, but there’s a catch and it requires registry edits.

    The New Project Dialog is built around the idea of selecting a projecttemplate first and then selecting a view-engine supported by that template.

    Others have managed to add their own things to this window, so I took the hints offered by ASP.NET MVC 3 with xUnit.net Testproject, another 3rd party extension and played around in the registry for a while.

    First you have to create a ProjectTemplate for visual studio from which it can generate a clean Spark project. For completeness sake, you can do this by creating a new Razor project, rewiring it for Spark and then exporting the template using the file menu. Uncheck the box to auto-register the new export in VS. I opted to keep my installation simple and moved the new template to where the official MVC3 project templates live (For me that was C:\Program Files (x86)\Microsoft VisualStudio 10.0\Common\IDE\ProjectTemplates\CSharp\Web). Then run “devenv /setup” from the commandline for VS to find and register the newly created template.

    Custom additions to the New Dialogue Window have to be added here:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Mvc3\ProjectTemplates]
     |
     |- [MyOwnTemplate]
          |- (REG_SZ)Title="Template title"
          |- (REG_SZ)Description="Description for the box in the right"
          |- [C#]
              |- [Spark]
              |   |- (REG_SZ)Path="CSharp\\Web"
              |   |- (REG_SZ)Template="YourCustomCSharpSparkTemplate.zip"
              |   |- (REG_DWORD)SupportsUnitTests=1
              |- [Razor]
                  |- (REG_SZ)Path="CSharp\\Web"
                  |- (REG_SZ)Template="YourCustomCSharpRazorTemplate.zip"
                  |- (REG_DWORD)SupportsUnitTests=0
    

    If you’re not on a 64-bit installation, remove the Wow6432Node key from the opening registry node.

    Now when you restart VS and run the New Project Dialog wizard for MVC3 the newly registered template should be listed in there. When you select your custom projecttemplate, you should see that the ViewEngine dropdown shows “Spark” as the current ViewEngine.

    The New Project Dialog groups templates by the top-key under ProjectTemplates. Since MVC3 does not register its default templates in the registry we don’t know under which key they are grouped and consequently cannot add our own ViewEngines to those.

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

Sidebar

Related Questions

I'm creating a new project, asp.net mvc3 with Razor, and wanting to turn the
When creating a new project in netbeans, if i select JAVA Desktop application, it
I am creating a new project from the ground up. I have my web
I'm currently working on creating a new C# project that needs to interact with
I am creating a new build process for a DotNet project which is to
I'm creating a new Flex component (Flex 3). I'd like it to have a
When I'm creating new project with GWT plug in it creates a skeleton project
When creating a new MVC Project in VS2008 Professional (SP1 installed), I do not
When creating a new project in ProjectLocker, by default it makes the project private,
When creating a new project, i want this project to become available from a

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.