'Referencing another project in .Net Core
I have 6 projects in a blank solution. I just want to reference a project to another. I have HomeController in Blog.Web projects. I want to access another project's methods like IOrganizationService in Blog.Services projects. How can I use IOrganization's method in HomeController class? For clear insight, please see picture.

Red marks show the errors....
Solution 1:[1]
Edit your MyProject.csproj file. And add a new ItemGroup or add your package into an existing ItemGroup. Here's example:
<ItemGroup>
<PackageReference Include="Polly" Version="7.2.0" />
<ProjectReference Include="..\SomeOtherProject\SomeOtherProject.csproj" />
</ItemGroup>
Solution 2:[2]
Simply upgrade your visual studio to 2022, it supports .net core up to 6.0, it is also compatible to older .net core sdk.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | knocte |
| Solution 2 | Shawn Lee |
