In my application, I have a utility class which is supposed to execute a series of tasks in parallel, and provide reporting on the success and timing of the various tasks.
Every time I run it, I get an EntryPointNotFoundException.
The simplest test case I could come up with which creates the behavior is beyond trivial. Just
Task.Run(() => { Console.WriteLine("This is sanity test"); });
using no return value, and no custom classes anywhere throws an EntryPointNotFoundException.
This is with Visual Studio 2015, the process is 64 bit (which for the overall application it MUST be, running on Windows 7 64-bit). It is a .NET 4.5 console application.
What causes this and how can it be fixed?