Disable transitive project reference in .NET Standard 2

前端 未结 2 1064
挽巷
挽巷 2020-11-28 13:58

I\'m writing an MVC website using ASP.NET Core 2.0.

In the ASP.NET Core project (let\'s call it Web), I reference a .NET Standard 2 project in the same

2条回答
  •  暖寄归人
    2020-11-28 14:18

    Well my question was close to one marked as duplicate here but to solve it requires different tactic.

    Thanks to comment from "Federico Dipuma" and the answer given here I was able to solve this problem.

    You should edit the Service.csproj file and add PrivateAssets="All" to ProjectReference keys you don't want to flow to top.

    
        
    
    

提交回复
热议问题