Bugs item #1601128, was opened at 2006-11-22 08:18
Message generated for change (Comment added) made by garyfx
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1601128&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tasks
Group: 0.85
>Status: Closed
>Resolution: Invalid
Priority: 7
Private: No
Submitted By: Alexander Popov (mogadanez)
Assigned to: Nobody/Anonymous (nobody)
Summary: <nunit2> call framework 2.0 on 1.1 solution

Initial Comment:
in test solution  i have  class
pair_ex: System.Web.UI.Pair

under fw 1.1 it works fine.
but under fw 2.0 it not compiled because Pair class marked as sealed.
I'm not plan migrate to 2.0 now, so leave this code unchanged. try build and 
test it with nant

here is mapping :


<?xml version="1.0" ?>
<project name="nant" default="test">          
    <property name="outputType" value="Plain"/>
    <target name="build">
        <solution configuration="debug" solutionfile="test.sln">
        </solution>
    </target>
    <target name="test" depends="build">
        <echo message="${nant.settings.currentframework}"/>
        <nunit2>
             <formatter type="Xml" usefile="false"/>
             <test assemblyname="bin/test.dll"/>
        </nunit2>
    </target>
</project>

and start nant with keyword -t:net-1.1
build target was successefull but  nunut task fail with message: 
"Failure executing test(s). If you assembly is not built using NUnit version 
2.2.8.0, then ensure you have redirected assembly bindings. Consult the do
cumentation of the <nunit2> task for more information.
    Could not load type 'metacomm.portal.Pair_ex' from assembly 
'metacomm.webcontrols_test, Version=1.0.2517.29190, Culture=neutral, 
PublicKeyToken=nu
ll' because the parent type is sealed."

How it can be? it is compiled but not executed? 8-0
how can i detect wich assembly of nunut used?

i place <echo message="${nant.settings.currentframework}"/>
in build file and it's report "[echo] net-1.1"

adding verbose="true" not add any additional info

P.s. full log in attach





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

>Comment By: Gary Feldman (garyfx)
Date: 2006-11-27 10:50

Message:
Logged In: YES 
user_id=847172
Originator: NO

I've closed this because it doesn't identify a particular bug in NAnt, but
seems more like a configuration problem - perhaps the wrong version of
NUnit is installed.

Please ask question like this on the nant-users mailing list.  If it turns
out that there is a bug underlying this, then feel free to submit a new bug
report.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1601128&group_id=31650

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to