resource identifier xxxxxxxx has already been used in this assembly

12.6k views Asked by At

Compiling a Workflow with Visual Studio 2010 and .Net Framework 3.0 results in this CSC error:

"resource identifier xxxxxxxx has already been used in this assembly"

where xxxxxxxx is a Workflow Type in my Project.

I'm using Workflow Foundation 3. Thanks for your help, Tom

2

There are 2 answers

0
SliverNinja - MSFT On

Was getting this same issue recently in VS IDE - traced this down to the CSPROJ having the same import twice for a nuget package. If you see this - comb through your CSPROJ looking for duplicate <Import/> elements for the same asset.

1
AudioBubble On

There is likely a folder in your project with some controls that should not be compiled again.

The simplest solution would be to Right-Click the folder with xxxxxxxx in it, and select "Exclude from Project"

DO NOT DELETE THE FOLDER!

sample pic