cs-util-com / cscore

cscore is a minimal-footprint library providing commonly used helpers & patterns for your C# projects. It can be used in both pure C# and Unity projects.
https://cs-util-com.github.io/cscore/
Apache License 2.0
197 stars 32 forks source link

Solve Unity import problem caused by System.Threading.dll #12

Closed cs-util closed 5 years ago

cs-util commented 5 years ago

When importing the CsCore Unity package the main problem is the System.Threading.dll since when compiling the Unity project with .Net 4 or later this will cause duplicate class errors because the Threading classes will already be already present

So if people who import the Unity project do not read the import instructions and import the complete CsCoreNet3.5Compat folder with the rest they will have to manually delete the CsCoreNet3.5Compat folder again before the project even compiles again.

I did not find a good solution yet since it's not possible to execute and Editor scripts included in the package before the package is fully imported, so the 2 options are that it does not work for users using .Net 4 or later or it will not work for users using .net 3.5 or earlier.

cs-util commented 5 years ago

.net 3.5 or earlier are deprecated by Unity, so I will remove the compat folder and not support it by the cscore library anymore