I've just upgraded our Teamcity to use the 3.21 release of the console tool and we're getting the below error:
System.InvalidCastException: [A] cannot be cast to [B] . Type A originates from 'nCrunch.VSAddIn, Version=3.21.0.6, Culture=neutral, PublicKeyToken=01d101bf6f3e0aea' in the context 'Default' at location 'C:\BuildAgent\tools\NCrunch_Console_3.21.0.6\nCrunch.VSAddIn.dll'. Type B originates from 'NCrunch, Version=3.21.0.6, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\BuildAgent\tools\NCrunch_Console_3.21.0.6\ncrunch.exe'.
at nCrunch.Common.ServiceLocator.FetchInstance[T](Boolean throwOnMissingService)
at ..ctor()
at ..ctor(Boolean )
at . ( , ILogWriter , , String , Nullable`1 )
at . (String[] )
I've had to roll back to 3.20 release. Thought this might be helpful.
We use the zip file release pushed out to the build agents automatically by the build server.