问题描述
环境:win8.1,VS2013,问题:用Vs2013建了个工程,因为使用到查询access数据库,使用jet.oledb.4.0.当把工程编译成x86,手动打开nunitx86.exe可以测试dll无错,但是使用nant测试dll文件,显示jet.oledb.4.0未注册,请教解决方案,谢谢。部分build文件代码如下:<projectname="..."default="run"><propertyname="configuration"value="debug"/><targetname="clean"description="Deleteallpreviouslycompiledbinaries."><delete><fileset><includename="**/bin/Debug/**"/><includename="**/obj/**"/><includename="**/*.suo"/><includename="**/*.user"/></fileset></delete></target><targetname="build"description="Buildalltargets."><calltarget="build..."/></target><targetname="rebuild"depends="clean,build"/><targetname="build.test"><msbuildproject="C:testtest.csproj"><propertyname="Configuration"value="debug"/><propertyname="Platform"value="x86"/></msbuild><propertyname="expected.output"value="bin/x86/${configuration}/test.dll"/><failunless="${file::exists(expected.output)}">Outputfiledoesn'texistin${expected.output}</fail></target><targetname="run"depends="rebuild"><nunit2><formattertype="Xml"usefile="true"extension=".xml"outputdir="."/><testassemblyname="C:testbinx86Debugtest.dll"haltonfailure="false"/></nunit2><nunit2reporttodir="C:test"><fileset><includesname="test.dll-results.xml"/></fileset></nunit2report></target></project>
解决方案
解决方案二:
自己解决了,调用<execprograme="...nunit-console-x86.exe">...</exec>
解决方案三:
请问通过这种调用如何同时执行多个dll的测试和生成报告呢??