posts - 236, comments - 436, trackbacks - 56

My Links

News

Awarded Microsoft MVP C#.NET - 2007, 2008 and 2009


I am born in Bangladesh and currently live in Melbourne, Australia. I am a Microsoft Certified Application Developer MCAD Chartered Member (C# .Net)and born in Bangladesh.
I am founder and Chief Executive Officer of
Simplexhub, a highly experienced software development company based in Melbourne Australia and Dhaka, Bangladesh. Co-founder and core developer of Pageflakes www.pageflakes.com.
Simplexhub, is on its mission to build a smart virtual community in Bangladesh and recently launched beta realestatebazaar.com.bd an ASP.NET MVC application written in C#.NET.


Some of 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

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.

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

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
Gravatar

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

Thanks for the solution. I solved my problem in this way.
2/13/2009 7:06 AM | Viggneshwar
Gravatar

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

Great

You saved much timr for me, Thanks.
5/30/2009 7:48 AM | A.Aziem
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: