Можно использовать Ghostscript для чтения файлов PDF и распечатывать их на указанном принтере.
I've downloaded the NUnit 2.5 source and opened the VS2008 solution in the VS2010 beta. Once the conversion finished I opened all the projects and changed the target framework setting for all the projects to ".NET Framework 4.0". I then built the solution without any errors. I can now use the NUnit GUI app to run tests built for .NET 4.0. I've not done exhaustive testing of this build so there may be problems, but for my purposes it works fine.
Update: It is not necessary to rebuild NUnit. I discovered that if you add the following to the relevant NUnit config file you can run a test dll built for .NET 4.0.
Under
<startup>
<supportedRuntime version="v4.0.30319" />
</startup>
and under
<loadFromRemoteSources enabled="true" />
Предложенное решение отлично сработало для запуска NUnit. К сожалению, когда я перешел к шагу покрытия кода, NCover начал выдавать:
Profiled process terminated. Profiler соединение не установлено.
Лучшим решением, которое я нашел, было просто использовать "-x86" версию NUnit с NCover:
NCover.Console.exe nunit-console-x86.exe --additional params--
Теперь работает.
При выпуске .NET 4 я использовал
<supportedRuntime version="v4.0.30319" />
в NUnit 2.5.4 exe.config вместо requiredRuntime и тег loadFromRemoteResources, как показано выше. и все работало хорошо. Спасибо!
В NUnit 2.5.5 вы можете указать в командной строке параметр /framework=net-4.0 , и он совместим с новыми сборками, созданными с выпуском последней версии VS2010.
Если у вас возникла эта проблема после обновления до nunit 2.5.5, вам нужно обновить nant до последней версии, для меня это была .91 alpha.