If I add the Microsoft.TeamFoundationServer.ExtendedClient
package to a .NET 6.0 console application, I get the following warning:
E:\tmp\test\test.csproj : warning NU1701: Package 'Microsoft.AspNet.WebApi.Core 5.2.7' was restored using '.NETFramewor
k,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework
,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net
6.0'. This package may not be fully compatible with your project.
Am I referencing the correct package? How can I get rid of this warning? Or can I just ignore it?
(The purpose of this application will be to access and manipulate TFS Source Control items.)
Steps to reproduce:
From a Visual Studio 2022 command prompt, type the following commands:
dotnet new console -n test
cd test
dotnet add package Microsoft.TeamFoundationServer.ExtendedClient
dotnet build
The build will now generate the warning shown above.
The ".csproj" file produced looks like this:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.TeamFoundationServer.ExtendedClient" Version="16.170.0" />
</ItemGroup>
</Project>