Hi David,

As I haven't seen the sources for this task, can you tell me if it makes heavy 
usage of the StyleCop API?

The reason I'm asking this is because you could implement wrappers classes that 
use reflection to access the StyleCop API.

That way we don't have to introduce a compile-time dependency.

Of course, this is only recommended if the StyleCop API is stable.

Gert


From: David Williams 
Sent: Tuesday, October 14, 2008 1:16 PM
To: nantcontrib-developer@lists.sourceforge.net 
Subject: [NAntC-Dev] MS StyleCop task


Hi

I have developed a Nant task to run Microsoft's new StyleCop C# code analyser 
and would like to contribute it.

However, I am concious this introduces a 3rd party library dependency as 
StyleCop ships as assembly dlls rather than a command line exe.

In order for my task to run, the .Net runtime must locate the main StyleCop 
assembly.  To achieve this, I currently:

1. Install StyleCop under Nant's folder: nant-0.85\bin\lib\StyleCop\4.3\
2. Modify the assembly probing path in nant.exe.config: <probing 
privatePath="lib;lib\StyleCop\4.3" />

At runtime, the steps above are only required if my task is actually called.  
NantContrib users who are not interested in StyleCop would not need to install 
it or modify anything.

At compile time, however, the steps are required (plus a reference added within 
nantcontrib.build) otherwise my task will break the build.

What do you think ?

Regards
David Williams




--------------------------------------------------------------------------------


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/ 


--------------------------------------------------------------------------------


_______________________________________________
NAntContrib-Developer mailing list
NAntContrib-Developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
NAntContrib-Developer mailing list
NAntContrib-Developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer

Reply via email to