Skip to content

build: Remove unused NuGet package references - #3665

Open
VaclavElias wants to merge 2 commits into
stride3d:masterfrom
VaclavElias:csproj-unused-packages
Open

VaclavElias wants to merge 2 commits into
stride3d:masterfrom
VaclavElias:csproj-unused-packages

Conversation

@VaclavElias

Copy link
Copy Markdown
Contributor

PR Details

Housekeeping, every removal below is a package whose namespace is not used by the project (including its linked Compile Include files) and which does not flow to any consumer that needs it. No code changes; the only addition is a reference directlly where it belongs to.

  • Directory.Packages.props: remove redundant package version entries
  • Stride.Core.AssemblyProcessor.csproj: correct the PolySharp package reference
  • Stride.Assets.Presentation.Wpf.csproj: remove unused dependencies
  • Stride.Physics.Editor.csproj: add the required DotRecast.Detour dependency
  • Stride.Video.csproj: remove the unused Silk.NET.Direct3D12 reference
  • Stride.VisualStudio.Commands.Interfaces.Client.csproj: remove ServiceWire
  • Test and NuGet resolver projects: remove unused dependencies
  • Stride.ConnectionRouter.csproj: remove ServiceController reference

There should be a follow up PR removing STRIDE_INPUT_RAWINPUT from the code base if not used?

Related Issue

None.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My change requires a change to the documentation.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have built and run the editor to try this change out.

- Directory.Packages.props: remove redundant package version entries
- Stride.Core.AssemblyProcessor.csproj: correct the PolySharp package reference
- Stride.Assets.Presentation.Wpf.csproj: remove unused dependencies
- Stride.Physics.Editor.csproj: add the required DotRecast.Detour dependency
- Stride.Video.csproj: remove the unused Silk.NET.Direct3D12 reference
- Stride.VisualStudio.Commands.Interfaces.Client.csproj: remove ServiceWire
- Test and NuGet resolver projects: remove unused dependencies
- Stride.ConnectionRouter.csproj: remove ServiceController reference
@VaclavElias VaclavElias added area-Build dependencies Pull requests that update a dependency file labels Oct 17, 2026
@Kryptos-FR Kryptos-FR added ci-enduser Run the end-user sample screenshot + packaging suite on this PR ci-editor Run the GameStudio editor screenshot suite on this PR and removed ci-enduser Run the end-user sample screenshot + packaging suite on this PR labels Oct 18, 2026
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Silk.NET.Direct3D11" Condition="'$(TargetFramework)' == '$(StrideFramework)' Or '$(TargetFramework)' == '$(StrideFrameworkUWP)'" PrivateAssets="compile" />
<PackageReference Include="Silk.NET.Direct3D12" Condition="'$(TargetFramework)' == '$(StrideFramework)'" PrivateAssets="compile" />

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that correct? I thought we were removing Direct3D11 in favor of Direct3D12. cc @xen2

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Silk.NET.Direct3D12 isn't used at the moment in Stride.Video if I am correct. We can add it back now or once it is migrated to Silk.NET.Direct3D12? I will wait for xen2's comment.

<ItemGroup>
<PackageReference Include="NuGet.Protocol" />
<PackageReference Include="NuGet.PackageManagement" />
<PackageReference Include="NuGet.Resolver" />

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suspicious that our NugetResolver doesn't use the package of the same name. Did we reinvent the wheel here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is suspicious. I built all .slnx solutions in the repo and there were no issues, unless it surfaces through some resolving issues through a runtime. Let's see if we can get more feedback.

Comment thread sources/Directory.Packages.props
- Adding back as requred because it will be used.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Build ci-editor Run the GameStudio editor screenshot suite on this PR ci-enduser Run the end-user sample screenshot + packaging suite on this PR dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants