I'm trying to use .NET 4.0 to build a Exchange 2010 transport agent. But I had to compile as x64 and .NET 3.5 for the install to work (used VS2013) otherwise I get an error: "This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded." when trying to install the agent.
.NET 3.5 was required by the two references
Microsoft.Exchange.Data.Common
Microsoft.Exchange.Data.Transport
But according to this .NET 4.0 is supported on Exchange 2010
I've used this guide to build the agent
I tried to follow this article but I can't get a .NET 4.0 version of the .dll to install