This project has moved. For the latest updates, please go here.

Compile error in your same sourc code

Oct 19, 2010 at 3:49 PM

Error 1 'Microsoft.Win32.TaskScheduler.DailyTrigger' does not contain a constructor that takes '0' arguments

The source code line is

td.Triggers.Add(new DailyTrigger { DaysInterval = 2 });
Oct 19, 2010 at 5:41 PM

Please ensure you have downloaded the latest source code drop. Also, note that the current version of the code is written to be compiled by Visual Studio 2010 and .NET 4.

Oct 19, 2010 at 5:46 PM

I guess that is the reason, I used VS2008 to reference yur DLL, and modified your sample code a little. It still works.

So I am wandering, is it possible you also can provide a .Net 3.5 version?

Oct 20, 2010 at 5:07 PM

The DLL is actually .NET 2.0 compatible. The sample code however does assume .NET 4. Are you looking for a sample that is 2.0 compatible?