Copied to clipboard

Flag this post as spam?

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


  • Snow lizard 36 posts 106 karma points
    Jun 26, 2017 @ 10:02
    Snow lizard
    0

    Learning Surface controllers

    Hi I'm having trouble following the umbraco TV instructions for creating surface controls.

    I'm following the tutorial: http://umbraco.tv/videos/umbraco-v7/developer/fundamentals/surface-controllers/creating-the-model/

    When I create a class it creates

    public class ContactFormViewModel { public ContactFormViewModel() { // // TODO: Add constructor logic here // } }

    Instead of a namespace

    e.g

    namespace MyFirstSurfaceController.Model {

       public class ContactFormViewModel
       {
    
       }
    

    }

    I'm using umbraco v7.0.4 and Visual Studio 2013. Where an I going wrong?

    Thanks

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Jun 26, 2017 @ 10:04
    Alex Skrypnyk
    1

    Hi Alan

    It's not Umbraco issue, it's how Visual Studio handles the file creation.

    Can you live with it? You can change Visual Studio settings and make it like you want.

    Thanks,

    Alex

  • Snow lizard 36 posts 106 karma points
    Jun 26, 2017 @ 10:16
    Snow lizard
    0

    Ok thanks Alex. I'll change the settings

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies