Trello.NET
Trello.NET copied to clipboard
Could not convert string 'sky' to dictionary key type 'TrelloNet.Color'
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.
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".
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