Microsoft.Win32.TaskScheduler NOT FOUND - I want to import this namespace in VB.NET

限于喜欢 提交于 2019-12-22 03:54:12

问题


I've been looking at sample code for interfacing with the Windows Task Scheduler, and most of them import the namespace:

Microsoft.Win32.TaskScheduler

When I go to import it, it's not there within Win32.

Does anyone know why I can't import it? I'm assuming that something isn't registered correctly on my machine, but I can't figure out how to fix it.

Just for the record, I can start the Scheduled Task component under Accessories. I'm using VS 2008 (VB.Net) with Windows XP Professional.


回答1:


In your project, you need to add a reference to the Microsoft.Win32.TaskScheduler.dll that was part of the codeplex download.

[The usual place is to create a folder as part of your source tree for external Libs and reference from there.]

Update: Current practice would be to use NuGet to manage a dependency: https://www.nuget.org/packages/TaskScheduler/



来源:https://stackoverflow.com/questions/2892014/microsoft-win32-taskscheduler-not-found-i-want-to-import-this-namespace-in-vb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!