Git Product home page Git Product logo

razor-converter's Introduction

The razor-converter is a simple tool for converting Microsoft® ASP.NET MVC WebForms Views to the new Razor syntax. It was initially developed by the Telerik ASP.NET MVC team for internal use, but it now lives its own life on GitHub.

Known limitations:

  • The tool only works with views and does not deal with the project structure and master pages.
  • Expressions in script tags are not converted
  • Due to the differences between the view engines the automatic conversion will sometimes fail or produce incorrect results. See the integration tests for specific scenarios that are not covered.

For general tips on converting WebForms Views to Razor Views, see these blog posts:

Help specific to the Telerik Extensions for ASP.NET MVC

Command line usage:

aspx2razor <input-directory> [output-directory] [options]

Options: -r: Convert directories and their contents recursively (Contributed by Jeffrey T. Fritz)

A file with cshtml extension will be created for each input file. Existing files will be OVERWRITTEN, so you must be very careful.

razor-converter's People

Contributors

csharpfritz avatar gyoshev avatar miaojiuchen avatar pamartinez avatar sebnilsson avatar tsvetomir avatar vongruenigen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.