Avoid unnecessary M.VisualBasic and S.ValueTuple dependencies

Found in https://github.com/dotnet/runtime/pull/96795#discussion_r1464797169

These packages shouldn't be referenced on modern TFMs as the types are already provided inbox by the framework.
This commit is contained in:
Viktor Hofer 2024-01-24 12:56:23 +01:00 коммит произвёл GitHub
Родитель 64a8afa69f
Коммит 0138c8b575
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -49,10 +49,10 @@
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="1.0.1" />
<PackageReference Include="Microsoft.VisualBasic" Version="10.0.1" />
<PackageReference Include="Microsoft.VisualBasic" Version="10.0.1" Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard'" />
<PackageReference Include="Microsoft.VisualStudio.Composition" Version="16.1.8" />
<PackageReference Include="Nullable" Version="1.3.0" PrivateAssets="all" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" Condition="'$(TargetFramework)' == 'netstandard1.6' or '$(TargetFramework)' == 'net452' or '$(TargetFramework)' == 'net46'" />
<!-- Use PrivateAssets=compile to avoid exposing our NuGet dependencies downstream as public API. -->
<PackageReference Include="NuGet.Common" Version="$(NuGetApiVersion)" PrivateAssets="compile" />