posts - 218, comments - 222, trackbacks - 68

My Links

News




I am a Microsoft Certified Application Developer MCAD Chartered Member (C# .Net) and born in Bangladesh.
I work for Ocean Informatics Pty Ltd as a Senior Developer - Analyst.
I am also co-founder and core developer of Pageflakes (acquired by LiveUniverse) www.pageflakes.com
and most recently created SmartCodeGenerator

My Articles
Flexible and Plugin based .Net Application..
Mass Emailing Functionality with C#, .NET 2.0, and Microsoft® SQL Server 2005 Service Broker'
Write your own Code Generator or Template Engine in .NET
Smart Code Generator .NET: Usage Overview
Smart Code Generator .NET: Architectural Overview
Smart Code Generator .NET: using with NAnt and Cassini

Archives

Free Programming Language Training

Duplicate items are not supported by the "Sources" parameter (VS2005 IDE error)

Problem:
In one of my new project after generating some codes with .NetTiers, when I tried to compile the project in VS2005 IDE it started showing this error:

The item "Audit.cs" was specified more than once in the "Sources" parameter. Duplicate items are not supported by the "Sources" parameter. MyProject.Net.Entities

As you can guess there is not enough information or any direction on how to resolve this issue.


Solution
:
As usual started googling and found some hints that in the csproj file there might be same entry twice. I opened up MyProject.Net.Entities.csproj via Notepad I found the following nodes defined twice (in Nettiers Entities) (if you are not using Nettiers you might have only one item).

<Compile Include="Audit.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="AuditBase.generated.cs">
<DependentUpon>Audit.cs</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="IAudit.cs">
<DependentUpon>Audit.cs</DependentUpon>
<SubType>Code</SubType>
</Compile>

I deleted these nodes and made sure only one node exists for each item, and that solved the problem.

Hope this helps.

Print | posted on Monday, October 22, 2007 5:45 PM |

Feedback

Gravatar

# re: Duplicate items are not supported by the "Sources" parameter (VS2005 IDE error)

Thanks for the solution.It is very usefule to us.
4/20/2008 8:01 PM | Anny

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 8 and 6 and type the answer here:

Powered by: