Hello! It turns out this error:

The item "Models \ OrganizationUnitDepartments.cs" was the "Sources" parameter. Duplicate items are not supported by

And in OrganizationUnitDepartments.cs, the following is written:

public partial class OrganizationUnitDepartments { public long Id { get; set; } public Nullable<int> GoodBuildings { get; set; } public string ColorBuildings { get; set; } public virtual Areas Areas { get; set; } public virtual OrganizationUnits OrganizationUnits { get; set; } public virtual Regions Regions { get; set; } } 

In the code everywhere is red ... What is the error did not quite understand what was said in the error. Help me to understand. Thank.

  • But I understood what the error is, I have one file duplicated. But I didn’t find the second one in the project (((( - qwerty

1 answer 1

Upload your project (this is done via the context menu of the project in the solution browser), then open it as an XML file (this is also done via the context menu).

There will be something like this:

 <ItemGroup> <Compile Include="Models\OrganizationUnitDepartments.cs" /> </ItemGroup> 

remove the double and upload the project.

  • I apologize, but where to find (.csproj)? Nowhere did I find the type of such <ItemGroup> <Compile Include = "Models \ OrganizationUnitDepartments.cs" /> </ ItemGroup> @Ruslan_K - qwerty
  • @qwerty is your project. You can find it in the Solution Explorer or in the Explorer ... - Pavel Mayorov
  • thanks, helped. Can you tell what the duplication was about? - qwerty