Current NUnit runner supports only .NET 4.0 beta 1. you will have to update assembly .config file in the build agent:
Copy <server>/update/plugins/dotNetPlugin.zip to some temp folder.
update all config files matching the wildcard JetBrains.TeamCity.PlatformProcessRunner.v4.0*.exe.config:
please set the following startup configuration:
<startup>
<supportedRuntime version="v4.0.20506"/>
<supportedRuntime version="v4.0.21006"/>
<supportedRuntime version="v4.0.30128"/>
</startup>
pack patched plugin and replace the original .zip file on the server.
Wait while build agent(s) autoupgrade.
Try running the build again.
I've made the change. It still fails with the same error. Can you explain why we need to add these .NET 4.0 supporting changes when NUnit can still run on CLR 2 for my assembly?
Ah, I was updating the wrong location's .zip file. Once I updated the right one, it worked. Thanks!