简体   繁体   中英

Msix, packaging and task scheduler

I made a console app using .NET 5.0 in VS2019 pro preview, packaged it with "Windows application packaging project" msix. Everything going smoothly and installed correctly, updates perfectly. Problem arises when I want to add this program to a task scheduler as the.exe file is located in C:\Program Files\WindowsApps\PackageName\Version...
1. Can't run it from the WindowsApps folder due to restrictions (As there are going to be multiple other users it's not feasible to make them all gain access). 2. The folder will change name if I push an update given the version nr. Is there a way to do this correctly? Like a command to launch windows app files? Any help would be appreciated!

Have you tried defining an execution alias and specifying the alias name (not path) as target for the scheduled task?

This should solve both the permission and changing paths problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM