I have all the pieces in place:

  • Synology NAS
  • C# Console app written with .NET 7
  • An internet connection

I have the internet connected to my NAS. Now how do I get my console application on it and run it?

  • farcaster@beehaw.org
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Install the Mono package using the package manager. Then you should be able to copy your application to the NAS and run it in a terminal.

    • xcjs@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      This is a bit outdated with .NET Core. You can just compile it for a Linux target or install the .NET runtime from Microsoft.

      I’m not sure Mono supports all the newer language features.

      • TehPers@beehaw.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        Unless they’ve updated it since I last checked, it does not. I remember it being stuck on C# 7 or so, with limited C# 8 features. Or maybe it was C# 6 with limited C# 7 features. Either way, we’re looking at C# 12 coming out sometime soon.

  • dark_stang@beehaw.org
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Which Synology NAS? Is it one of the ARM based ones or an Intel based one? You’ll need to compile targeting the right arch.

    For the actual scheduling, you can schedule jobs through the web UI. Control panel > task scheduler. I have a few scheduled jobs on mine, but they’re just bash scripts.