使用任务计划程序在 Windows 上安排 .Net Core 控制台应用程序 [英] Schedule a .Net Core console application on windows using Task Scheduler

查看:27
本文介绍了使用任务计划程序在 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.

这篇关于使用任务计划程序在 Windows 上安排 .Net Core 控制台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆