System.ValueTuple 4.6.1 in a .NET Framework 4.8 app inserts strange sections into .csproj
Typically, a NuGet package update just increases the version specified in the project file. One of the attached screenshots shows an example of what it looks like to update
However, doing the same for
That file itself just has this content, and nothing else:
It did that for every project that referenced
System.Runtime.CompilerServices.Unsafe from version 6.1.0 to 6.1.2. However, doing the same for
System.ValueTuple (in this case, from 4.5.0 to 4.6.1) removes the corresponding <Reference> tag entirely (screenshot of the diff attached). Additionally, it adds an <Import> tag for a .targets file in the NuGet packages folder (as well as a potential error message, if that file is missing):That file itself just has this content, and nothing else:
It did that for every project that referenced
System.ValueTuple. Since the app still starts up, this is not an urgent issue, but it feels strange committing that code, since I don't understand it. This is the first time I'm seeing anything like that, and we've updated our packages many times before. Is this normal? Is this a new mechanism to add packages? Where is the package actually referenced now? I'm on VS 17.14.8.

