Skip to content

Commit

Permalink
Remove more unnecessary NuGet package references. (#6036)
Browse files Browse the repository at this point in the history
Remove unnecessary NuGet dependencies.

Depend on System.Memory only on .NET Framework.

Remove all unused entries from Packages.props.
  • Loading branch information
teo-tsirpanis committed Feb 9, 2021
1 parent bcaa609 commit 9657f12
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 26 deletions.
14 changes: 0 additions & 14 deletions eng/Packages.props
Expand Up @@ -17,32 +17,18 @@
<PackageReference Update="Shouldly" Version="3.0.0" />
<PackageReference Update="SourceLink.Create.CommandLine" Version="2.1.2" />
<PackageReference Update="System.CodeDom" Version="4.4.0" />
<PackageReference Update="System.Collections.Concurrent" Version="4.3.0" />
<PackageReference Update="System.Collections.Immutable" Version="5.0.0" />
<PackageReference Update="System.Diagnostics.TraceSource" Version="4.0.0" />
<PackageReference Update="System.IO.Compression" Version="4.3.0" />
<PackageReference Update="System.IO.FileSystem.Primitives" Version="4.3.0" />
<PackageReference Update="System.Linq.Parallel" Version="4.0.1" />
<PackageReference Update="System.Memory" Version="4.5.4" />
<PackageReference Update="System.Net.Http" Version="4.3.4" />
<PackageReference Update="System.Reflection.Metadata" Version="1.6.0" />
<PackageReference Update="System.Reflection.TypeExtensions" Version="4.1.0" />
<PackageReference Update="System.Resources.Extensions" Version="4.6.0" />
<PackageReference Update="System.Resources.Writer" Version="4.0.0" />
<PackageReference Update="System.Runtime.CompilerServices.Unsafe" Version="5.0.0"/>
<PackageReference Update="System.Runtime.InteropServices" Version="4.3.0" />
<PackageReference Update="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" />
<PackageReference Update="System.Runtime.Loader" Version="4.0.0" />
<PackageReference Update="System.Runtime.Serialization.Primitives" Version="4.1.1" />
<PackageReference Update="System.Security.Cryptography.Pkcs" Version="4.7.0" />
<PackageReference Update="System.Security.Cryptography.Xml" Version="4.7.0" />
<PackageReference Update="System.Security.Permissions" Version="4.7.0" />
<PackageReference Update="System.Security.Principal.Windows" Version="4.7.0" />
<PackageReference Update="System.Text.Encoding.CodePages" Version="4.0.1" />
<PackageReference Update="System.Text.Json" Version="4.7.0" />
<PackageReference Update="System.Threading.Tasks.Dataflow" Version="4.9.0" />
<PackageReference Update="System.Threading.Thread" Version="4.0.0" />
<PackageReference Update="System.Xml.XPath" Version="4.3.0" />
<PackageReference Update="xunit.assert" Version="$(XUnitVersion)" />
<PackageReference Update="xunit.console" Version="$(XUnitVersion)" />
<PackageReference Update="xunit.core" Version="$(XUnitVersion)" />
Expand Down
Expand Up @@ -16,7 +16,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Collections.Concurrent" />
<PackageReference Include="Shouldly" />
<PackageReference Include="Microsoft.CodeAnalysis.Build.Tasks" />
<PackageReference Include="NuGet.Frameworks" >
Expand Down
3 changes: 1 addition & 2 deletions src/Build/Microsoft.Build.csproj
Expand Up @@ -32,8 +32,6 @@

<PackageReference Include="System.Collections.Immutable" />
<PackageReference Include="System.Threading.Tasks.Dataflow" />
<PackageReference Include="System.Memory" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe"/>
<PackageReference Include="System.Text.Json" />

<PackageReference Include="System.Reflection.Metadata" Condition="'$(MonoBuild)' == 'true'" />
Expand All @@ -43,6 +41,7 @@
<PackageReference Include="Microsoft.VisualStudio.Setup.Configuration.Interop" />
<Reference Include="System.Configuration" />
<Reference Include="System.IO.Compression" />
<PackageReference Include="System.Memory" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETFramework'">
Expand Down
3 changes: 1 addition & 2 deletions src/MSBuild/MSBuild.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\Shared\FileSystemSources.proj" />
<Import Project="..\Shared\DebuggingSources.proj" />
Expand Down Expand Up @@ -197,7 +197,6 @@
<Compile Include="XMake.cs">
<ExcludeFromStyleCop>true</ExcludeFromStyleCop>
</Compile>
<None Include="project.json" />
<!-- This is to enable CodeMarkers in MSBuild.exe -->
<!-- Win32 RC Files -->
<RCResourceFile Include="native.rc" />
Expand Down
3 changes: 1 addition & 2 deletions src/Tasks.UnitTests/Microsoft.Build.Tasks.UnitTests.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(RuntimeOutputTargetFrameworks)</TargetFrameworks>
Expand All @@ -13,7 +13,6 @@

<ItemGroup>
<PackageReference Include="System.Security.Principal.Windows" />
<PackageReference Include="System.Xml.XPath" />
<PackageReference Include="Shouldly" />

<ProjectReference Include="..\Build\Microsoft.Build.csproj" />
Expand Down
4 changes: 1 addition & 3 deletions src/Tasks/Microsoft.Build.Tasks.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\Shared\FileSystemSources.proj" />
<Import Project="..\Shared\DebuggingSources.proj" />
Expand Down Expand Up @@ -996,8 +996,6 @@
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETFramework'">
<PackageReference Include="System.CodeDom" />
<PackageReference Include="System.Reflection.Metadata" />
<PackageReference Include="System.Reflection.TypeExtensions" />
<PackageReference Include="System.Runtime.InteropServices" />
<PackageReference Include="System.Security.Cryptography.Pkcs" />
<PackageReference Include="System.Security.Cryptography.Xml" />
<PackageReference Include="System.Security.Permissions" />
Expand Down
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>$(RuntimeOutputTargetFrameworks)</TargetFrameworks>
Expand All @@ -11,7 +11,6 @@

<ItemGroup>
<PackageReference Include="Shouldly" />
<PackageReference Include="System.IO.FileSystem.Primitives" />
<PackageReference Include="Microsoft.CodeAnalysis.Build.Tasks" />

<ProjectReference Include="..\Utilities\Microsoft.Build.Utilities.csproj" />
Expand Down

0 comments on commit 9657f12

Please sign in to comment.