且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2023-02-19 19:04:51

我认为在任务计划程序中创建任务时,您必须将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.