System.BadImageFormatException
"Zac Harvey" <[email protected]> Wed, 3 Dec 2008 14:07:34 -0500
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <[email protected]> |
--===============2226735913315945569==
Content-Type: multipart/alternative;
boundary="----=_Part_73798_24476229.1228331254915"
------=_Part_73798_24476229.1228331254915
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
[I sent an earlier copy of this from my work address; here is my NUnit list
address...]
I am brand new to NUnit, and in fact **all** TDD frameworks, so per usual,
my first attempt to get the project working correctly has failed.
I created a solution/project in Visual Studios, Widget.dll, and equipped it
with all the right using directives (NUnit.Framework), references and
attributes ([TestFixture], etc.). The project compiles successfully.
However, when I try to open the project inside of the GUI Runner app, I get
the following error:
*System.BadImageFormatException : Version 2.0 is not a compatible version.*
*You may be attempting to load an assembly built with a later version of the
CLR than the version under which NUnit is currently running, 1.1.4322.*
I am using NUnit 2.4.8, so I'm not sure where 1.1.4322 is coming from.
Also, I was wondering why all Assert methods (AreEqual, IsNull, etc.) all
return void? Had they returned a Boolean, one could check if the Assertion
failed in the code and throw an exception. This makes me wonder: would doing
so violate some underlying "philosophy" of TDD that I don't understand??
Thanks for any help here!
------=_Part_73798_24476229.1228331254915
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 12"><meta name="Originator" content="Microsoft Word 12"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5Charvey%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///C:%5CDOCUME%7E1%5Charvey%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5Charvey%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1107304683 0 0 159 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-alt:"Times New Roman";
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1073750139 0 0 159 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-size:10.0pt;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<p class="MsoNormal">[I sent an earlier copy of this from my work address; here is my NUnit list address...]<br></p><p class="MsoNormal"><br></p><p class="MsoNormal">I am brand new to NUnit, and in fact *<b>all</b>* TDD frameworks,
so per usual, my first attempt to get the project working correctly has failed.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I created a solution/project in Visual Studios, Widget.dll,
and equipped it with all the right using directives (NUnit.Framework),
references and attributes ([TestFixture], etc.). The project compiles
successfully. However, when I try to open the project inside of the GUI Runner
app, I get the following error:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><b>System.BadImageFormatException : Version 2.0 is not a
compatible version.</b></p>
<p class="MsoNormal"><b>You may be attempting to load an assembly built with a
later version of the CLR than the version under which NUnit is currently
running, 1.1.4322.</b></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I am using NUnit 2.4.8, so I'm not sure where 1.1.4322 is
coming from.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Also, I was wondering why all Assert methods (AreEqual,
IsNull, etc.) all return void? Had they returned a Boolean, one could check if
the Assertion failed in the code and throw an exception. This makes me wonder:
would doing so violate some underlying "philosophy" of TDD that I don't
understand??</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks for any help here!</p>
------=_Part_73798_24476229.1228331254915--
--===============2226735913315945569==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
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=/
--===============2226735913315945569==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Nunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-users
--===============2226735913315945569==--