this post was submitted on 25 Jul 2023
2 points (100.0% liked)

Programming

13345 readers
1 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 1 year ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago

Is this something you want to run manually or automatically? If you want to run automatically either look into dotnet service workers, or run the console app with a crontab.

You can use https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-publish to create an executable. Then you would just transfer the resultant files, or file if you publish as a single executable file.