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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:21:25+00:00 2026-06-14T08:21:25+00:00

My site is written in VB.NET and MVC 3.0 (WebForms) but recently we agreed

  • 0

My site is written in VB.NET and MVC 3.0 (WebForms) but recently we agreed to migrate to C#, so any new code is written in C# where possible. However, we have limited resources to fully migrate the site across, so much of it is still VB.NET including the main web application project.

I really want to start using Razor views, but as cshtml rather than vbhtml, because my feeling is these will be hard to migrate later. However, I can’t see a way of doing this in a VB site. The Web App project won’t allow C#, and editing the files would be a nightmare because Intellisense wouldn’t work.

The only way I can see for doing this without huge effort is to move all the VB code out of the web project into a separate VB.NET class library, and then create a new C# web project that just contains view files, converting all the inline code in the ASPX files to C#. This would still be a big job though.

Can anyone think of a quicker way?

  • 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-14T08:21:26+00:00Added an answer on June 14, 2026 at 8:21 am

    You can try putting the new Razor files into a separate project, and then using RazorGenerator to compile them into a “View Library” dll which you can then reference from your existing project.

    I haven’t had much luck with RazorGenerator, but I’ve only used it for the Template functionality. Your usecase sounds much more like what it’s designed for, so you shouldn’t have any issues with it.

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

Sidebar

Related Questions

I have a site written in Asp.net webforms. It uses ajax heavily. Most forms
I have a web site written in ASP.NET MVC 4.5 I have a controller
I have a web site written in ASP.NET WebForms. I need to distribute the
I have a site written in ASP.NET MVC. I have a page where the
I have a main website app written in ASP.NET's MVC 3. Now, what I
I've written a site for my summer internship using ASP.NET MVC. The progress is
I have written a simple ASP.NET MVC 2 application that stores data and can
I have an existing site build in c# 3.5 using asp.net mvc 1. There
I know this site is written using ASP.Net MVC and I do not see
I have written an ASP.NET MVC application that runs inside an IFrame. When one

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.