Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pete K 317 posts 56 karma points
    Feb 28, 2013 @ 20:37
    Pete K
    0

    Getting started with Razor in Visual Studio?

    I'm just starting to work with Umbraco 6, after a long hiatus. First thing I am doing is learning to write Razor code. Naturally, I want to use VS to take advantage of color coding and IntelliSense. Problem is, I have no idea how to start. I tried simply opening a functioning Umbraco site as a website in VS, but no color coding or IntelliSense. I have a general sense that there is a different download I should be using for development purposes, but I'm just not sure how to proceed. I don't want to mess with Umbraco code, just write razor macros in the VS environment. What is the easiest path to that? 

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Mar 01, 2013 @ 09:39
  • Pete K 317 posts 56 karma points
    Mar 01, 2013 @ 13:36
    Pete K
    0

    Thanks, Alex. I will try that. 

  • Charles Afford 1163 posts 1709 karma points
    Mar 03, 2013 @ 16:11
    Charles Afford
    0

    Hello, i would take a look at the umbraco documentation @ 

    http://our.umbraco.org/wiki/reference/code-snippets/razor-snippets ;

    http://our.umbraco.org/documentation/Reference/Mvc/

    If you have got any  more question give us a shout and i will try and help as much as i can :)  Charlie :)

  • Pete K 317 posts 56 karma points
    Mar 04, 2013 @ 16:16
    Pete K
    0

    Thanks again, Alex. That was what I needed. I installed MVC 3 and all is well. I also found this very helpful video by Doug Robar that explains how to get intellisense to recognize dynamic content. Sweet! 

     

     

  • Pete K 317 posts 56 karma points
    Mar 04, 2013 @ 16:19
    Pete K
    0

    Thank you too, Charles -- the first link you posted looks promising but appears to be broken. The second is way oevr my head. Like I said, I just want to use Razor to write macros.

    I'm getting ready to dive into the umbraco.tv videos now. 

  • Charles Afford 1163 posts 1709 karma points
    Mar 23, 2013 @ 18:36
    Charles Afford
    0

    hey, sorry not posted back did not get a notifc.  Charles.  I will just test the link.

  • Charles Afford 1163 posts 1709 karma points
    Mar 23, 2013 @ 18:37
    Charles Afford
    0

    Hi, link must have changed.  Here it is :) http://our.umbraco.org/wiki/reference/code-snippets/razor-snippets

Please Sign in or register to post replies

Write your reply to:

Draft