AlphaDelta/Clearbytes

'Action' is an ambiguous reference between 'ClearbytesBridge.Action' and 'System.Action'

Opened this issue · 1 comments

1>------ Build started: Project: ClearbytesBridge, Configuration: Debug Any CPU ------
1> ClearbytesBridge -> C:\Users\user\Source\Repos\Clearbytes\ClearbytesBridge\bin\Debug\ClearbytesBridge.dll
2>------ Build started: Project: Clearbytes, Configuration: Debug Any CPU ------
2>C:\Users\user\Source\Repos\Clearbytes\Clearbytes\Modules\Firefox.cs(261,34,261,40): error CS0104: 'Action' is an ambiguous reference between 'ClearbytesBridge.Action' and 'System.Action'
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

This project was originally created in .NET 2.0 when the Action type had no non-generic version, so many people had to make their own Action delegate. The downside is that now these generally wont compile in .NET versions above .NET 2.0 because they added a non-generic Action delegate in 4.0.

You can fix this error by either compiling for .NET 2.0, or by removing this line

public delegate void Action();