afrantzis / bless

Bless - Gtk# Hex Editor
GNU General Public License v2.0
210 stars 38 forks source link

Error building project: 'Range' is an ambiguous reference #20

Closed davidcim closed 4 years ago

davidcim commented 4 years ago

"make" returns this error for 6 source files:

error CS0104: 'Range' is an ambiguous reference between 'System.Range' and 'Bless.Util.Range'

I have solved the issue editing the sources and explicitly choosing which I guess is the right class:

using Range=Bless.Util.Range;

The files where the compiler complains are:

src/buffers/ByteBuffer.cs src/gui/DataBookFinder.cs src/gui/areas/AreaGroup.cs src/tools/find/FindOperations.cs src/tools/find/IFindStrategy.cs src/tools/find/IFinder.cs

My mono version is:

Mono JIT compiler version 6.4.0.198 (tarball Tue Sep 24 01:20:30 UTC 2019)

davidcim commented 4 years ago

Added a pull request with the fix.

afrantzis commented 4 years ago

Fixed by https://github.com/afrantzis/bless/commit/84801988f908e51d9843c3e0ee8f2cd05c0a2d97 .

zahid2000 commented 2 years ago

👍👍👍