使用任务计划程序在 Windows 上安排 .Net Core 控制台应用程序

使用任务计划程序在 Windows 上安排 .Net Core 控制台应用程序

问题描述:

是否可以使用任务计划程序将 .net 核心控制台应用程序安排为每天在特定时间运行?

Is it possible to schedule a .net core console application to run every day at a specific time using the Task Scheduler?

我认为在任务计划程序中创建任务时,您必须将Start in"的值设置到您的应用程序文件夹中,即 D:Test测试1.该应用程序将在此文件夹中运行,并且应该能够找到 appsettings 文件.

I think you will have to set the value for "Start in" while creating the task in task scheduler to your app folder, that is D:TestTest1. The app will run in this folder and should be able to find the appsettings file.