Thanks Bruce.
How to find daemon application version using .Net Core 3.1 with systemd?
Hello Team,
I have a C# .NET Core 3.1 daemon application which is running in RedHat Linux. Application output type is console application
How to find version of the application when i run the following command
testApp.service -v
Could you please help me on this?
Example:
if we run rsyslog -v command, the rsyslog version details will be shown in terminal window.
Same way, my application version details has to shown in terminal window.
Regards,
Prabs
2 answers
Sort by: Newest
-
-
Bruce (SqlWork.com) 56,846 Reputation points
2021-08-06T15:22:20.883+00:00 You need to write code to implement this standard practice. The command line arguments will be passed to your main() in program.cs. You write code to check for the -v switch and display the version information rather than executing the standard code path. If you configure assembly info in your project you can use
To get the info to display.