人生是一场不能存盘的RPG,我只能尽量多搞几个Screenshot

July 8, 2006

NAnt的代码不能Debug

Filed under: .NET

用VS2003打开NAnt的代码,断点断不到,Why?

我检查了Project的属性设定,是dubug版,一切正常,最后我发现是app.config中的下列代码导致断点不能工作:

  <startup>
        <!– .NET Framework 2.0 –>
        <supportedRuntime version="v2.0.50727" />
        <!– .NET Framework 2.0 Beta 2 –>
        <supportedRuntime version="v2.0.50215" />
        <!– .NET Framework 2.0 Beta 1 –>
        <supportedRuntime version="v2.0.40607" />
        <!– .NET Framework 1.1 –>
        <supportedRuntime version="v1.1.4322" />
        <!– .NET Framework 1.0 –>
        <supportedRuntime version="v1.0.3705" />
    </startup>

因为我使用的vs2003,所以只有把<supportedRuntime version="v1.1.4322" />移动到最顶端,断点才能工作.

这些代码是怎么生成的?

在project的propery dialog的General页上,设置Supported runtimes,在app.config中就会生成上述代码.

Comments »

The URI to TrackBack this entry is: http://recordsome.blogsome.com/2006/07/08/p123/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.






















Get free blog up and running in minutes with Blogsome
Theme designed by Hadley Wickham