views:

308

answers:

2

I have been looking at sample online 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 something isn't registered correctly on my machine, but I can't fiugre out how to fix it. Just for the record, I can start the Scheduled Task component under Accessories. I've using VS 2008 (VB.Net) with Windows XP professional.

Thanks.

+2  A: 

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.]

Mitch Wheat
+1  A: 

It is a set of managed class wrappers around the native COM interfaces. You can download it here.

Hans Passant
Thanks for that link. I think I had run across it this morning, but on one of the downloads, I only found source for a project. This one had the actual DLL in it.That said, why is this DLL/namespace named Microsoft.Win32.XXXX when it's NOT an actual Microsoft DLL??? Part of my confusion was expecting it to be part of the "canned" Microsoft.Win32 namespaces.
Jeff
I don't know, you'd have to ask the developers. You could file a bug, kinda late though.
Hans Passant