Mathijs Segers
Mathijs Segers

Reputation: 6238

Two csProj assemblies with "same name" causing issues

Simple question.

I have multiple projects e.g.

SomeDir/Common/Utils.csproj SomeDir/Services/Common/Utils.csproj

Projects's namespace reflect folder structure, how can I add both of these utils projects as assembly to another project? Visual studio seems to complain about the name.

Upvotes: 2

Views: 517

Answers (2)

Mathijs Segers
Mathijs Segers

Reputation: 6238

One option is just editing the .csproj the UI of VS does not support loading 2 projects with the same name, editing the file is just fine.

As addition, these projects will end up in Artifactory, so then the problem will no longer persist.

Upvotes: 0

Kevin
Kevin

Reputation: 1536

I would give my projects more descriptive names. Even though both projects are utils, there will still be a difference in what they are meant to do, or where they should be used. An example of this descriptive naming could be:

  • Common.Utils
  • Services.Utils

This would adress the problem of conflicting names, and will also make it more clear to anyone reading your code.

Upvotes: 3

Related Questions