0.92 Beta 1 release not compiled with NET_4_0 define
Peter McEvoy <[email protected]> Mon, 14 May 2012 17:34:29 +0100
| Newsgroups | gmane.comp.windows.dotnet.nant.user |
|---|---|
| Message-ID | <CAEs-SiJF8LtYg5o=1kH4XbaVptMX_nh9E-UujJqqXwYUiWFBGw@mail.gmail.com> |
--===============4026048526153716059==
Content-Type: multipart/alternative; boundary=047d7b15b139f7868004c001a839
--047d7b15b139f7868004c001a839
Content-Type: text/plain; charset=ISO-8859-1
Hi there,
I've been trying to use the nunit2 task to unit test some MVC controllers
and have been seeing the following exception:
[nunit2] 21)
Otu.Web.UnitTests.Controllers.RegistrationControllerUnitTests.Execute_should_return_registration_complete_view_when_registration_is_in_session
: SetUp : System.InvalidOperationException : Dynamic operations can only be
performed in homogenous AppDomain.
Investigating a little further, it seems that the task should be creating
Homogenous AppDomains when running test assemblies that may be using DLR
features.
Looking at the source, it seems that someone did think of this, but the
code is #if'd out, and that code does not appear in the download binaries :
#if NET_4_0
PermissionSet myDomainPermSet = new
PermissionSet(PermissionState.Unrestricted);
return AppDomain.CreateDomain(domSetup.ApplicationName,
AppDomain.CurrentDomain.Evidence, domSetup, myDomainPermSet);
#else
I realize that 4.0 specific code may not be to everyone's taste, but
perhaps there could be a side-by-side release of a .Net 4.0 binary build?
(I'd really prefer to be using "blessed" releases rather than baking my
own)
Pete
--
<http://www.fsf.org/fb>
http://www.fsf.org/facebook
http://bit.ly/hzA1MS
http://bit.ly/fztcGn
http://cli.gs/V1UtWw
http://cli.gs/S3zVIt
http://goo.gl/ZBptR
http://goo.gl/tXFO7 <http://goo.gl/ZBptR>
--047d7b15b139f7868004c001a839
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi there,<div>I've been trying to use the nunit2 task to unit test some=
MVC controllers and have been seeing the following exception:</div><div><b=
r></div><div><div>=A0 [nunit2] 21) Otu.Web.UnitTests.Controllers.Registrati=
onControllerUnitTests.Execute_should_return_registration_complete_view_when=
_registration_is_in_session : SetUp : System.InvalidOperationException=A0: =
Dynamic operations can only be performed in homogenous AppDomain.</div>
</div><div><br></div><div>Investigating a little further, it seems that the=
task should be creating Homogenous AppDomains when running test assemblies=
that may be using DLR features.</div><div><br></div><div>Looking at the so=
urce, it seems =A0that someone did think of this, but the code is #if'd=
out, and that code does not appear in the download binaries :</div>
<div><br></div><div><div>#if NET_4_0</div><div>=A0 =A0 =A0 =A0 =A0 =A0 Perm=
issionSet myDomainPermSet =3D new PermissionSet(PermissionState.Unrestricte=
d);</div><div>=A0 =A0 =A0 =A0 =A0 =A0 return AppDomain.CreateDomain(domSetu=
p.ApplicationName, AppDomain.CurrentDomain.Evidence, domSetup, myDomainPerm=
Set);</div>
<div>#else</div></div><div><br></div><div><br></div><div>I=A0realize=A0that=
4.0 specific code may not be to everyone's taste, but perhaps there co=
uld be a side-by-side release of a .Net 4.0 binary build? =A0(I'd reall=
y prefer to be using "blessed" releases rather than baking my own=
)</div>
<div><br></div><div><br></div><div>Pete<br clear=3D"all"><div><br></div>-- =
<br><a href=3D"http://www.fsf.org/fb" target=3D"_blank"><img src=3D"http://=
static.fsf.org/nosvn/no-facebook-me.png" width=3D"200" height=3D"66"></a><b=
r><div><a href=3D"http://www.fsf.org/facebook" target=3D"_blank"><font size=
=3D"1">http://www.fsf.org/facebook</font></a></div>
<div><font size=3D"1"><a href=3D"http://bit.ly/hzA1MS" target=3D"_blank">ht=
tp://bit.ly/hzA1MS</a><br></font></div><div><font size=3D"1"><a href=3D"htt=
p://bit.ly/fztcGn" target=3D"_blank">http://bit.ly/fztcGn</a><br></font></d=
iv><div>
<font size=3D"1"><a href=3D"http://cli.gs/V1UtWw" target=3D"_blank">http://=
cli.gs/V1UtWw</a></font></div><div><font size=3D"1"><a href=3D"http://cli.g=
s/S3zVIt" target=3D"_blank">http://cli.gs/S3zVIt</a></font></div><div><a hr=
ef=3D"http://goo.gl/ZBptR" style=3D"font-size:x-small" target=3D"_blank">ht=
tp://goo.gl/ZBptR<br>
</a></div><div><a href=3D"http://goo.gl/ZBptR" target=3D"_blank"><font size=
=3D"1">http://goo.gl/tXFO7</font></a></div><div><br></div><br>
</div>
--047d7b15b139f7868004c001a839--
--===============4026048526153716059==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
--===============4026048526153716059==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users
--===============4026048526153716059==--