First of all, I'm getting this build error, but only on some machines:
Error CS1705 Assembly '***' with identity '***, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Net.Http, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Net.Http' with identity 'System.Net.Http, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' *** C:\***\CSC 1 Active
I guess, it's somehow connected with SDK versions. From what I can see in Properties window, on some projects I have Microsoft.NETCore.App 1.1.1
while others have Microsoft.NETCore.App 1.1.2
.
After package update, build succeeds (but why I am forced to update all packages?).
But still, sdk versions differ. And now I'm trying to use this consolidation feature of Visual Studio:
which says in a tooltip:
Following versions are unavaible due to additional constraints in the project or packages.config
How to upgrade all projects to newer SDK? And how to be sure not to break build on other machines in future?
dotnet restore
on a command line and open the solution again? This package is implicitly referenced and the NuGet UI is explicitly supposed not to perform any updates for this package. – Martin Ullrichrestore
successful. After opening solution again I see one warning in error list:Detected package downgrade: Microsoft.NETCore.App from 1.1.2 to 1.1.1 ...
. Consolidation still doesn't work – astefproject.json
file(s). If you are using Visual Studio 2017 please share your*.csproj
file(s). -- We are looking for the exact framework that you are targeting and making sure all your project point to the same (or compatible) one. – Svek