Copied to clipboard

Flag this post as spam?

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


  • Mathias 51 posts 205 karma points
    Jan 29, 2021 @ 08:59
    Mathias
    0

    Adding custom code when installing Umbraco from zip-file

    Hello!

    I've opted for a fresh Umbraco project to use the installation method wherein you download a zip-file containing all the Umbraco files instead of the way I usually do it, which is creating a Visual Studio project and installning Umbraco via Nuget.

    My question is, how would one go ahead and add C#-classes now, since im running everything inside visual studio code and I do not have a build-step setup yet.

    Can I just add the classes I want, and simply reset the IIS-instance and have the code be compiled that way?

  • Kevin Jump 2343 posts 14890 karma points MVP 8x c-trib
    Jan 29, 2021 @ 09:32
    Kevin Jump
    100

    Hi

    I am not sure if its required, but when working in that way i would put my code in an App_Code folder.

    updating the .cs files in the folder should cause the site to recompile. so you shouldn't also need to reset IIS while developing your code.

  • Mathias 51 posts 205 karma points
    Jan 29, 2021 @ 10:17
    Mathias
    0

    Thank you very much Kevin!

Please Sign in or register to post replies

Write your reply to:

Draft