When migrating packages.config
with Newtonsoft.Json
package to the PackageReference
csproj format I get compatibility issue:
Newtonsoft.Json v10.0.3, install.ps1 script will be ignored when the package is installed after the migration.
Is this anything which could break something? The project compiles well in local VS 2017. But TeamCity Visual Studio (sln) build fails with the error namespace name Newtonsoft could not be found
. Can this be related somehow to the migration issue?
Per @Peska's comment I've checked the NuGet version which was used for the Restore build step in TeamCity. The used NuGet version was 3.4.3.
Once this was changed to Nuget 4.3.0 the package restore worked as expected and the following "Build Solution (sln)" step then succeeded.