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

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

推荐答案

<我认为您必须在任务计划程序中将任务创建到您的应用程序文件夹中时,设置开始于的值,即D:\Test\Test1。该应用程序将在此文件夹中运行,并且应该能够找到该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:\Test\Test1. The app will run in this folder and should be able to find the appsettings file.

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

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