Skip to content

Commit c246b22

Browse files
React to NuGet package pruning warnings (2) (#12964)
* React to NuGet package pruning warnings (2) Replaces #12960 Unsure why those weren't flagged in 9249b89 but this is the right thing to do. Set PackageId for the facade project to avoid project prune warnings. * Update comments in Microsoft.VisualBasic.Facade.csproj * Update src/Microsoft.VisualBasic/src/Microsoft.VisualBasic.Facade.csproj Co-authored-by: Alexander Köplinger <[email protected]> --------- Co-authored-by: Alexander Köplinger <[email protected]>
1 parent 8ef1b9c commit c246b22

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

Directory.Packages.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<PackageVersion Include="Microsoft.Win32.SystemEvents" Version="$(MicrosoftWin32SystemEventsPackageVersion)" />
1212
<PackageVersion Include="Microsoft.Windows.CsWin32" Version="$(MicrosoftWindowsCsWin32PackageVersion)" PrivateAssets="all" />
1313
<PackageVersion Include="System.CodeDom" Version="$(SystemCodeDomPackageVersion)" />
14-
<PackageVersion Include="System.Collections.Concurrent" Version="4.3.0" />
1514
<PackageVersion Include="System.ComponentModel.TypeConverter.TestData" Version="$(SystemComponentModelTypeConverterTestDataVersion)" />
1615
<PackageVersion Include="System.Configuration.ConfigurationManager" Version="$(SystemConfigurationConfigurationManagerPackageVersion)" />
1716
<PackageVersion Include="System.Data.SqlClient" Version="4.9.0" />

src/Common/tests/TestUtilities/System.Private.Windows.Core.TestUtilities.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<ItemGroup>
1414
<PackageReference Include="FluentAssertions" />
1515
<PackageReference Include="Moq" />
16-
<PackageReference Include="System.Collections.Concurrent" />
1716
<PackageReference Include="xunit.assert" />
1817
<PackageReference Include="xunit.stafact" />
1918
<PackageReference Include="Microsoft.DotNet.RemoteExecutor" />

src/Microsoft.VisualBasic/src/Microsoft.VisualBasic.Facade.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
<PropertyGroup>
44
<AssemblyName>Microsoft.VisualBasic</AssemblyName>
5+
<!-- Set PackageId to something different than the assembly name as NuGet prunes package and project
6+
references for dependencies that are inbox in the framework. NuGet uses the PackageId information
7+
for that. This is necessary for this facadeproject as Microsoft.VisualBasic is inbox on .NETCoreApp. -->
8+
<PackageId>$(MSBuildProjectName)</PackageId>
59
</PropertyGroup>
610

711
<ItemGroup>

src/System.Windows.Forms.Primitives/tests/TestUtilities/System.Windows.Forms.Primitives.TestUtilities.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="FluentAssertions" />
15-
<PackageReference Include="System.Collections.Concurrent" />
1615
<PackageReference Include="Microsoft.DotNet.XUnitExtensions" />
1716
</ItemGroup>
1817

src/System.Windows.Forms/tests/TestUtilities/System.Windows.Forms.TestUtilities.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="System.Collections.Concurrent" />
1211
<PackageReference Include="Microsoft.DotNet.RemoteExecutor" />
1312
<PackageReference Include="Microsoft.DotNet.XUnitExtensions" />
1413
</ItemGroup>

0 commit comments

Comments
 (0)