Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Content Pipeline Error: Item with the same key already added

$
0
0

@ManBeardGames wrote:

I have a content pipeline extension that I've been working on. It takes information exported from Aseprite so I can do animations a bit easier. It was working, but I did the unthinkable and decided to refactor it a bit to make things a little simpler in the game code.

The problem I'm having is now, anytime I do a build in the content pipeline, it throws an error saying An item with the same key has already been added. The strange thing is it says this, not matter the content type it's building. As long as my .dll is referenced in the pipeline tool, it does this.

For instance, with just my .dll referenced and only a spritefont file in the pipeline, it throws this error when building the spritefont file. The spritefont file has the correct importer/processor selected too. If i remove the reference to my .dll, it builds the spritefont fine.

I'm at a lose here, not even sure where to begin with figuring this out.
This was happening using the 3.6.0.1625 pipeline tool as well as the newer 3.7.0.1708 pipeline tool, so pretty sure it's something dumb I've done on my end.

I have a solution with many projects in it, so I'll try to provide the source code the best I can here. Here is a snapshot of the solution explorer with the files explained below highlighted.. One thing to note, the Psire.Asperite project is misnamed (aseprite spelled wrong), i just haven't done the project renaming yet.

Psiren.ContentPipelineExtensions.AsepriteModel

Psiren.Asperite.ContentReaders

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles