I am doing a project in C # using programming in Layers, although I know the language, I have zero experience with .NET and it is giving me an error that although it may be obvious, I do not find any sense.
Error NETSDK1022 "Compile" duplicate elements were included. The .NET SDK includes "compile" elements from your project directory by default You can remove those elements from the file project or set the "EnableDefaultCompileItems" property to "false" if you want to include them explicitly in the project file. For more information, see link . The duplicate elements were: 'ActionsSQL.cs'; 'ExceptionFuec.cs'; 'Fuec.cs'; 'Users.cs'
C: \ Users \ UserName \ Folder \ ProjectName \ Data \ Data.csproj
C: \ Program Files \ dotnet \ sdk \ 2.1.400 \ Sdks \ Microsoft.NET.Sdk \ targets \ Microsoft.NET.Sdk.DefaultItems.targets 246
In the layer that I am currently working on, it is in Data, and I am trying to create the .dll, its structure is as follows:
Datos
|
|--Fuec.cs
|--Usuarios.cs
|--AccionesSQL.cs
|--ExceptionFuec.cs
classes Usuarios.cs
and Acciones.cs
inherit at Fuec.cs
and ExceptionFuec.cs
inherit from class NpgsqlException
.
I hope you can help me understand that mistake and how to solve it.