找不到Microsoft.Win32.TaskScheduler-我想在VB.NET中导入此命名空间 [英] Microsoft.Win32.TaskScheduler NOT FOUND - I want to import this namespace in VB.NET

查看:250
本文介绍了找不到Microsoft.Win32.TaskScheduler-我想在VB.NET中导入此命名空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找与Windows Task Scheduler交互的示例代码,其中大多数导入名称空间:

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

Microsoft.Win32.TaskScheduler

当我导入它时,它不在Win32中.

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.

仅作记录,我可以在附件"下启动计划任务"组件.我正在Windows XP Professional中使用VS 2008(VB.Net).

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

推荐答案

在您的项目中,您需要添加对Microsoft.Win32.TaskScheduler.dll的引用,该引用是

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

[通常的做法是创建一个文件夹作为源树的一部分,以供外部Lib使用并从那里进行引用.]

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

更新:当前的做法是使用NuGet来管理依赖项: https://www.nuget.org/packages/TaskScheduler/

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

这篇关于找不到Microsoft.Win32.TaskScheduler-我想在VB.NET中导入此命名空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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