Using ncover-0.9.1, I get:
System.TypeInitializationException: The type initializer for
"NCover.DevEnvDummy
" threw an exception. ---> System.IO.DirectoryNotFoundException: Could not
find
a part of the path
"C:\tools\eclipse3M6\workspace\ncover\NCover-devenv-actual.xm
l".
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access,
FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean
bFr
omProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access,
FileShare share, Int32 bufferSize)
at System.IO.StreamWriter.CreateFile(String path, Boolean append)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding
encodin
g, Int32 bufferSize)
at System.IO.StreamWriter..ctor(String path, Boolean append)
at NCover.DevEnvDummy..cctor()
--- End of inner exception stack trace ---
at NCover.DevEnvDummy.Add(Int32 point)
at NCover.Objects.Counter.get_ReportName()
at NCoverTask.get_ReportName()
at NCoverTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()
Please send bug report to [EMAIL PROTECTED]
What I've done is copy the NCover.dll to the local directory, then added
this to my .build file (with reportName and basedir modified):
<target name="instrument">
<loadtasks assembly="NCover.dll"/>
<ncover reportName="XYZ">
<sourcefilestoinstrument basedir="XYZMainDirectory">
<includes name="**/*.cs"/>
</sourcefilestoinstrument>
</ncover>
</target>
Then I typed "nant instrument" and that's what I got. The installation
instructions seemed minimal. I have no reference to
"C:\tools\eclipse3M6\workspace\ncover".
Regards,
Chris Dailey
****************************************************************************
*
READER BEWARE: Unencrypted, unsigned Internet e-mail is inherently insecure.
Internet messages may be corrupted, incomplete, misdirected or may
incorrectly identify the sender. Therefore, nothing in this message or
attachments may be considered legally binding.
THIS MESSAGE IS ONLY INTENDED FOR THE USE OF THE INDIVIDUAL OR ENTITY TO
WHICH IT IS ADDRESSED AND MAY BE PRIVILEGED.
If you are not the intended recipient or their authorized agent, you may not
forward or copy this information and must delete or destroy all copies of
this message and attachments received. If you have received this
communication
in error, please notify Matrikon Inc. by telephone at (780) 448-1010.
****************************************************************************
*
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers