Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

NCrunch with StyleCop
mikeblake
#1 Posted : Tuesday, September 27, 2011 8:24:05 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/27/2011(UTC)
Posts: 2
Location: uk

Please can you test with StyleCop with the target and dll referenced in the project using local paths (eg ..\..\Build\StyleCop...).

(Also, please enable the right click on the messages window so it is more obvious I can copy and paste).

Thanks - mikeblake a hotmail

"NCrunch: If you are experiencing problems in getting this project to build, have a look at https://www.ncrunch.net/...ng_project-build-issues

C:\Documents and Settings\blakem\Local Settings\Application Data\NCrunch\8508\10\Build\StyleCop\Microsoft.StyleCop.Targets (94): The "StyleCopTask" task could not be loaded from the assembly C:\Documents and Settings\blakem\Local Settings\Application Data\NCrunch\8508\10\Build\StyleCop\Microsoft.StyleCop.dll. Could not load file or assembly 'file:///C:\Documents and Settings\blakem\Local Settings\Application Data\NCrunch\8508\10\Build\StyleCop\Microsoft.StyleCop.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask."

PS the Bug submitter had an error, can you provide more exception details as the target audience is developers.
mikeblake
#2 Posted : Tuesday, September 27, 2011 10:17:41 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/27/2011(UTC)
Posts: 2
Location: uk

RTFM!

I think I need to use the "Include" feature as the proj file has relative paths.
Could the Wizard include this or look for ..\ in the imports?

Thanks

m
Remco
#3 Posted : Tuesday, September 27, 2011 11:53:35 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Hi Mike,

Thanks for posting! NCrunch does its best to pick up file dependencies for projects, but there are still a few things it's missing .. I think that task binaries are one of them. When in doubt, just use the AdditionalFilesToInclude setting to make sure you have the dependencies included. Do also let me know of any other dependencies you find that should be obviously specified in the project file, as it would be best if NCrunch could catch as many as possible.


Cheers,

Remco
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.031 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download