вторник, 24 июня 2014 г.

Fun with Orleans

Just a memo for myself and to place the solution on google (I spent two and a half hour figuring out what’s going on.)

If you get the next error

The "WriteToFile" task could not be loaded from the assembly W:\work\orleans\\Dependencies\OrleansMsBuildTask\OrleansMsBuildTask.dll. Could not load file or assembly ' {your Orleans SDK Path here}\Dependencies\OrleansMsBuildTask\OrleansMsBuildTask.dll' or one of its dependencies

trying to build Interfaces project using brand-new Microsoft (kinda) actors framework Orleans you probably need to rename your solution. If the name of the solution is “Orleans” the next condition from Orleans SDK target file will fail your build:

<When Condition="'$(SolutionName)'=='Orleans'">

So rename the solution to something different from “Orleans”, restart Visual Studio and the problem will just disappear.

Kinda strange way of writing build targets, but this SDK is not release version so they will hopefully have this fixed to the moment of the release.