upgrading avro.main to .NET 4.0