Schedule a .Net Core console application on windows using Task Scheduler

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.


Yes, its possible. But theres a trick. For some reason task scheduler mandates full path and filename for hosting process, so you need to enter in the "Program/Script" "C:\Program Files\dotnet\dotnet.exe". Confirmed this on Windows Server 2012 R2 with latest patches. .Net Core program goes into arguments box, no need for full path there. However .Net core program location path is required in "Start in". At least in cases when program is expecting to find some files from its location.