Trello.NET icon indicating copy to clipboard operation
Trello.NET copied to clipboard

Could not convert string 'sky' to dictionary key type 'TrelloNet.Color'

Open alkn17 opened this issue 9 years ago • 2 comments

Hi,

I am getting this error:

Could not convert string 'sky' to dictionary key type 'TrelloNet.Color'. Create a TypeConverter to convert from the string to the key type object. Path '[0].labelNames.sky', line 1, position 1013.

alkn17 avatar Dec 24 '15 12:12 alkn17

I ran into same thing tonight. FYI if you modify TrelloNet/Cards/Color.cs in Trello.net to include the missing colors, then rebuild Trello.net, the problem is solved. I had to add "Sky", "Lime", "Pink", and "Black".

johnmduval avatar Mar 19 '16 02:03 johnmduval

As far as I know, it's a known issue. There is a couple of PRs already to fix that, but the owner of this repository hasn't merged them. Perhaps, you could try one of the nuget packages based on forks of this repository that include fixes for card colors. Have a look at Trello.NET Fork and Trello.NET Edge

takemyoxygen avatar Mar 19 '16 09:03 takemyoxygen