I am in the process of upgrading our existing solution to .Net 4.6.1 and have been unable to get our unit tests to run during a server build. Locally they run as expected an
This is just to recap the solution brought forward by @Sushil earlier.
This is a known issue in Team Foundation Server 2015 RTM + Update 1 and will be fixed in Update 2, reference.
There is a workaround described by @Sushil here, which includes adding a .runsettings file that forces the test runner to older .Net framework (please not that you have to specify it through the "Add/Edit Test Run" dialog as adding it directly in the build process editor will be ignored).