I just added PostSharp to the project and now NCrunch will not build the project. This is the error:
C:\Users\joelt\AppData\Local\NCrunch\4204\16\packages\PostSharp.2.1.6.13\tools\PostSharp.targets (222): The "PostSharp21MoveWithRetry" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "c:\Windows\Microsoft.NET\Framework\v4.0.30319" directory.
I tried playing around with the Additional files to include, but I couldn't get anything working.
Remco NCrunch Developer
#1675
12 Apr 2012 08:34 UTC
Hi, thanks for posting!
It definitely looks to me like NCrunch is not aware of the postsharp build step binaries and is therefore not copying them into its workspace. You should be able to confirm this by right clicking on the failed build in the Tests Window, choosing Advanced->Browse to workspace and checking to see if the workspace contains all the postsharp files needed to build.
The 'Additional Files To Include' configuration setting would definitely be the thing to resolve such a problem. Make sure you add a full reference to your PostSharp tools relative to your project file (unless you're specifying the config at solution level, in which case this is your solution file). You may even want to take a step further and include ALL the packages for your solution in this configuration setting. At solution level, this would probably be something like:
packages\**.*
And at project level, it would probably be:
..\packages\**.*
It definitely looks to me like NCrunch is not aware of the postsharp build step binaries and is therefore not copying them into its workspace. You should be able to confirm this by right clicking on the failed build in the Tests Window, choosing Advanced->Browse to workspace and checking to see if the workspace contains all the postsharp files needed to build.
The 'Additional Files To Include' configuration setting would definitely be the thing to resolve such a problem. Make sure you add a full reference to your PostSharp tools relative to your project file (unless you're specifying the config at solution level, in which case this is your solution file). You may even want to take a step further and include ALL the packages for your solution in this configuration setting. At solution level, this would probably be something like:
packages\**.*
And at project level, it would probably be:
..\packages\**.*
Fixed.
I didn't know I could add the whole packages directory. I also tried using *.* instead of **.*. I thought **.* was a typo. =)
Thanks!
I didn't know I could add the whole packages directory. I also tried using *.* instead of **.*. I thought **.* was a typo. =)
Thanks!
Post a reply
Log in to reply.