0

I, have started working on visual studio on mac os but I, am getting weird errors in project structure. I, have created an empty solution and added the projects as shown in below screen shot.

Errors related to the project structure

I have created a new Auth.API as ASP.NET core WebApi project and then created two c# library project. When I, create the c# library project it automatically add the project to the Auth.API project as shown in the red mark. However, till now I have not added the project references as well. When I, build the project I get duplicate Auth.API.assembly.information.cs error message.

errors

I, manually remove it from the project as well but when I, rebuild again same scenario occurs. I, am not able to figure it out where the problem is occur.

Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
San Jaisy
  • 15,327
  • 34
  • 171
  • 290

1 Answers1

1

It looks like you have created all these projects into the same folder on disk, which is not supported by default (it is possible to make it work with clever editing of the csproj files but that's likely to hard to maintain).

I suggest moving all the csproj / .cs files of each individual projects into their own folders and then adding them to the solution.

Martin Ullrich
  • 94,744
  • 25
  • 252
  • 217
  • I, am using visual studio to create all project. I, didn't created on one folder. I just use the visual studio – San Jaisy Jun 04 '18 at 06:08
  • What does your folder structure look like on disk? are there multiple csproj files in one directory? – Martin Ullrich Jun 04 '18 at 06:54
  • If the default UX of VS/Mac makes you create multiple csproj files in the same directory, do report it as an issue on http://developercommunity.visualstudio.com – Martin Ullrich Jun 04 '18 at 06:54