1

New to Umbraco and having a problem updating the code of an existing site (Umbraco version 7.2.8).

Editing views works fine but when editing a model and/or controller the site does not change.

The files I'm editing are located in:

/Models/*.cs
/Controllers/*.cs

Could someone supply details on how to compile these?

Brendon
  • 11
  • 2
  • 1
    Your question is way too broad. Try to be more precise, and detail what you did. Read http://stackoverflow.com/help/how-to-ask for more. – J. Chomel Apr 28 '16 at 08:51
  • Thanks for the feedback, I have added further details to the post. – Brendon Apr 28 '16 at 21:28

2 Answers2

1

Depends on where your code behind files are located. If they're in /App_Code you shouldn't have to compile, I believe, but anything other than that (like /Models/*.cs or /Controllers/*.cs) will have to be compiled.

Jannik Anker
  • 3,320
  • 1
  • 13
  • 21
  • Could you please supply further information on compiling these files, I've updated the post to include additional details. – Brendon Apr 28 '16 at 21:30
  • I'm using Atom, but have Visual Studio Code installed if that helps? – Brendon Apr 28 '16 at 23:33
  • Maybe get Visual Studio Community (or Express) instead - otherwise you can google how to compile c# without Visual Studio :-/ – Jannik Anker Apr 29 '16 at 06:04
0

Your controller names should end with SurfaceController. All models you create as in Models folder. You might need to reference your models in controller