My solution has two projects - proj1 and proj2, which references proj1. I just converted the solution from packages.config to PackageReference, now when I build the solution, proj2 fails to compile with error:
Could not locate C:\Users...\source\repos\project\proj1\packages.config. Ensure that this project has Microsoft.Bcl.Build installed and packages.config is located next to the project file
I looked at the .csproj files, and there are zero references to any packages
folder.
If I remove the nuget package Microsoft.Bcl.Build from proj2, it compiles successfully but I get a warning saying any project that references proj1 must install that package.
Am I safe to remove it and ignore the warning? Otherwise i'm not sure why it's referencing packages.config file when i'm using PackageReference.
This is on latest VS 2019.