M
muesliflakes
I am trying to run nunit2 from nant and get the following error:
NUnit 2.0 Error:
Request for the permission of type
System.Security.Permissions.SecurityPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed.
The doco for Nunit see:
http://nant.sourceforge.net/help/tasks/nunit2.html, suggests that I
have a the following added to test config file.
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="nunit.framework"
publicKeyToken="96d09a1eb7f44a77" culture="Neutral" />
<bindingRedirect oldVersion="2.0.6.0" newVersion="2.1.4.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
I'm not sure where this would go as I am trying to test a class
library which would not have a config but I created one anyway and
called it as follows:
<target name="test">
<property name='include.tests' value='true' />
<call target='build' />
<nunit2>
<formatter type="Plain" />
<test assemblyname="${bld.dir}/${project.file}"
appconfig="C:\_ApplicationsVS\Mf\Mf.dll.config" />
</nunit2>
</target>
<target name='build'>
<call target='clean'/>
<call target='compile'/>
</target>
<target name="compile">
<!-- dependencies -->
<copy todir="${bld.dir}" if='${isLog4net}' > <fileset
basedir="${commons.dir}\log4net\" > <includes name="*.dll" />
</fileset> </copy>
<copy todir="${bld.dir}" if='${isNUnit}' > <fileset
basedir="${commons.dir}\nunit\" > <includes name="*.dll" />
</fileset> </copy>
<!-- compile -->
<csc target="${project.target}"
output="${bld.dir}/${project.file}"
debug="${debug}">
<references>
<includes name="${bld.dir}/*.dll" />
</references>
<resources>
<includes name="**/*.resx" />
</resources>
<sources basedir="${src.dir}">
<includes name="**/*.cs" />
<excludes name="_Test/**" unless='${include.tests}'/>
</sources>
</csc>
</target>
I still get the error, can anyone help.
Cheers Dave
NUnit 2.0 Error:
Request for the permission of type
System.Security.Permissions.SecurityPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed.
The doco for Nunit see:
http://nant.sourceforge.net/help/tasks/nunit2.html, suggests that I
have a the following added to test config file.
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="nunit.framework"
publicKeyToken="96d09a1eb7f44a77" culture="Neutral" />
<bindingRedirect oldVersion="2.0.6.0" newVersion="2.1.4.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
I'm not sure where this would go as I am trying to test a class
library which would not have a config but I created one anyway and
called it as follows:
<target name="test">
<property name='include.tests' value='true' />
<call target='build' />
<nunit2>
<formatter type="Plain" />
<test assemblyname="${bld.dir}/${project.file}"
appconfig="C:\_ApplicationsVS\Mf\Mf.dll.config" />
</nunit2>
</target>
<target name='build'>
<call target='clean'/>
<call target='compile'/>
</target>
<target name="compile">
<!-- dependencies -->
<copy todir="${bld.dir}" if='${isLog4net}' > <fileset
basedir="${commons.dir}\log4net\" > <includes name="*.dll" />
</fileset> </copy>
<copy todir="${bld.dir}" if='${isNUnit}' > <fileset
basedir="${commons.dir}\nunit\" > <includes name="*.dll" />
</fileset> </copy>
<!-- compile -->
<csc target="${project.target}"
output="${bld.dir}/${project.file}"
debug="${debug}">
<references>
<includes name="${bld.dir}/*.dll" />
</references>
<resources>
<includes name="**/*.resx" />
</resources>
<sources basedir="${src.dir}">
<includes name="**/*.cs" />
<excludes name="_Test/**" unless='${include.tests}'/>
</sources>
</csc>
</target>
I still get the error, can anyone help.
Cheers Dave