Mechakhan
Mechakhan

Reputation: 25

How to add references and packages to a shproj or shared project in a visual studio solution?

I have a visual studio solution with a shared project and a number of projects that depend on it. The shared project is essentially the "bulk" of the entire solution, and the csprojs are basically "extensions" of the shared project. It looks something like this.

As you can see, this is not ideal. If I wanted to make the shared project dependent on another package, I have to add it to ALL csproj projects.

Is there any way to add the packages to the shared project directly? Using Monodevelop if possible. If not, is there some other solution to the problem of code reusage that would work better in this case than a shared project?

Upvotes: 0

Views: 438

Answers (1)

asaf92
asaf92

Reputation: 1855

Shared Projects cannot reference any other project type (including other Shared Projects).

From MSDN

Upvotes: 0

Related Questions