Compatibility with Unity 2017.3

sergiodelvalle 4 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 6

There seems to be problems with Unity 2017.3. I had to go back to 2017.2 so I don't get compiler errors.

Chronos Version:
Unity Version:
Pending Review

What errors are you getting exactly?

Assets/Chronos/Source/Dependencies/Reflection/Utilities/Extensions.cs(70,39): error CS0433: The imported type `System.Runtime.CompilerServices.ExtensionAttribute' is defined multiple times

I'm using Unity 2017.3.0f3 with Chronos 2.4.13. No problems with 2017.2.0p4.

I'll try with the latest patch release of 2017.3

Same error with 2017.3.0p2. I'm making these tests by creating a copy of the project (which is using 2017.2.0p4) and opening with the new Unity version.

Here's what Visual Studio have to say about it:

The type 'ExtensionAttribute' already exists in 'CsvHelper, Version=, Culture=neutral, PublicKeyToken=8c4959082be5c823' and in 'System.Core, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' 

Will this bug be fixed?


Hi everyone, sorry for the late reply on this.

It seems your issue is stemming from a third-party plugin called CsvHelper. Do you have this in your project?

To fix it, you can go in Source/Dependencies/Reflection/Utilities/Extensions.cs, and add this below the usings:

using ExtensionAttribute = System.Runtime.CompilerServices.ExtensionAttribute;