How to bypass Microsoft.Bcl.Build warning

前端 未结 2 1055
挽巷
挽巷 2021-01-19 03:20

I have a solution with multiple projects, one of them has this build warning that shows

All projects referencing Project.csproj must install nuget

2条回答
  •  情书的邮戳
    2021-01-19 03:37

    I have resolved the issue by completely removing all Microsoft.Bcl and Microsoft.Bcl.Build references as @nozzleman suggested in comments.

    Although no dll references were present in the References list in solution explorer, there were entries in package.config for those 2 packages as below:

    
    
    

    I did a search (Ctrl + F) in full solution for the terms Microsoft.Bcl and Microsoft.Bcl.Build and removed all those entries from packages.config and also from .csproj files which had entries like below:

    
      
        
        
      
    

    Those lines were appended when it was installed before and as someone manually removed references by pressing Delete key, they were not removed.

    After cleaning those 2 items from everywhere the warning is gone from build.

提交回复
热议问题