Copied to clipboard

Flag this post as spam?

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


  • Thomas Shetler 4 posts 95 karma points
    Jan 19, 2017 @ 13:17
    Thomas Shetler
    0

    Subscribing to events without Visual Studio

    Hi,

    So I am trying to follow the example for subscribing to events outlined here: https://our.umbraco.org/Documentation/Getting-Started/Code/Subscribing-To-Events/

    However, after watching the related Umbraco TV guide as well (http://umbraco.tv/videos/umbraco-v7/developer/extending/events/subscribing-to-an-event/) I realized this is all being done in Visual Studio. Is there a way to get an example, or at least get pointed in the right direction, on how to do this using nothing but a basic text editor and an installation of Umbraco?

    Thanks!

  • Nik 1597 posts 7176 karma points MVP 6x c-trib
    Jan 19, 2017 @ 13:52
    Nik
    3

    Hi Thomas,

    There aren't any official guides/docs for that as far as I'm aware, however you could probably achieve it by creating *.cs files within the appcode directory. If the appcode directory doesn't exist simply create it in the root directory next to the app_data folder.

    The website will compile code files in there on application start up so, you might be able to simply write the code in those files and achieve the same thing.

    Thanks,

    Nik

  • Thomas Shetler 4 posts 95 karma points
    Jan 19, 2017 @ 14:13
    Thomas Shetler
    1

    Hey Nik,

    That solution worked like a charm. Thanks for the help!

  • Nik 1597 posts 7176 karma points MVP 6x c-trib
    Jan 19, 2017 @ 14:28
    Nik
    100

    No problem at all :-)

Please Sign in or register to post replies

Write your reply to:

Draft