Skip to content

Remove ProcessStartOptions type, update ref, src and tests#125839

Merged
adamsitnik merged 2 commits intomainfrom
copilot/remove-processstartoptions-type
Mar 20, 2026
Merged

Remove ProcessStartOptions type, update ref, src and tests#125839
adamsitnik merged 2 commits intomainfrom
copilot/remove-processstartoptions-type

Conversation

Copy link
Contributor

Copilot AI commented Mar 20, 2026

Description

Remove the ProcessStartOptions public type from System.Diagnostics.Process.

  • Source: Delete ProcessStartOptions.cs and its FileNotFoundResolvePath resource string
  • Ref assembly: Remove type declaration from ref/System.Diagnostics.Process.cs
  • Tests: Delete ProcessStartOptionsTests.cs, .Windows.cs, .Unix.cs
  • Project files: Remove corresponding <Compile> entries from src and test .csproj files

Build and all 345 existing tests pass.

Copilot AI and others added 2 commits March 20, 2026 15:01
Co-authored-by: adamsitnik <6011991+adamsitnik@users.noreply.github.com>
Co-authored-by: adamsitnik <6011991+adamsitnik@users.noreply.github.com>
@adamsitnik adamsitnik marked this pull request as ready for review March 20, 2026 15:26
Copilot AI review requested due to automatic review settings March 20, 2026 15:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the ProcessStartOptions public API surface from System.Diagnostics.Process, along with its implementation, resource string, and dedicated test coverage.

Changes:

  • Deleted ProcessStartOptions implementation and removed its FileNotFoundResolvePath resource string.
  • Removed the ProcessStartOptions type from the System.Diagnostics.Process ref assembly.
  • Removed ProcessStartOptions tests and the corresponding <Compile> entries from the test project.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/libraries/System.Diagnostics.Process/tests/System.Diagnostics.Process.Tests.csproj Drops <Compile> entries for removed ProcessStartOptions test files.
src/libraries/System.Diagnostics.Process/tests/ProcessStartOptionsTests.cs Deletes shared unit tests for the removed public type.
src/libraries/System.Diagnostics.Process/tests/ProcessStartOptionsTests.Windows.cs Deletes Windows-specific tests for filename resolution behavior.
src/libraries/System.Diagnostics.Process/tests/ProcessStartOptionsTests.Unix.cs Deletes Unix-specific tests for PATH/CWD resolution behavior.
src/libraries/System.Diagnostics.Process/src/System/Diagnostics/ProcessStartOptions.cs Removes the public ProcessStartOptions implementation entirely.
src/libraries/System.Diagnostics.Process/src/System.Diagnostics.Process.csproj Removes the <Compile> include for the deleted source file.
src/libraries/System.Diagnostics.Process/src/Resources/Strings.resx Removes the FileNotFoundResolvePath string resource that was only used by ProcessStartOptions.
src/libraries/System.Diagnostics.Process/ref/System.Diagnostics.Process.cs Removes the ProcessStartOptions type from the reference assembly.

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-diagnostics-process
See info in area-owners.md if you want to be subscribed.

@adamsitnik adamsitnik enabled auto-merge (squash) March 20, 2026 16:10
@adamsitnik
Copy link
Member

I wish my PRs were always approved so quickly :D

@stephentoub
Copy link
Member

I wish my PRs were always approved so quickly :D

Delete stuff more often ;-)

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants