Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProcessWapper.StartWithEvents now supports dotnet 8. #105

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

actbit
Copy link
Contributor

@actbit actbit commented Jun 5, 2024

Due to a breaking change related to Process in dotnet 8, Minecraft will not start correctly when using the ProcessWapper.StartWithEvents method.

More information about this breaking change can be found here.

Until now, if StartInfo.ShellUse was set to false, WindowStyle.Normal was always used regardless of the WindowStyle setting, but from dotnet 8, the WindowStyle setting is applied even if it is false.

In ProcessWapper.StartWithEvents, WindowStyle is specified as Hidden, which means the Minecraft window is not displayed.

For this reason, WindowStyle has been changed to Normal.

@actbit actbit closed this Jun 5, 2024
@actbit actbit deleted the feature-support-dotnet-8 branch June 5, 2024 09:03
@actbit actbit changed the title Change the WindowStyle setting of the ProcessUtil.StartWithEvents met… ProcessWapper.StartWithEvents now supports dotnet 8. Jun 5, 2024
@actbit actbit restored the feature-support-dotnet-8 branch June 5, 2024 09:12
@actbit
Copy link
Contributor Author

actbit commented Jun 5, 2024

I closed the pull request by mistake.

This pull request is valid.
Please respond.

@actbit actbit reopened this Jun 5, 2024
@AlphaBs
Copy link
Member

AlphaBs commented Jun 7, 2024

It doesn't actually open the Minecraft window? On my Windows PC, the Minecraft window opens fine, even on .net 8.0.

…ent does not open on .NET .8.0.

.NET 8 breaking change: ProcessStartInfo.WindowsStyle honored when UseShellExecute is false
https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/8.0/processstartinfo-windowstyle
@AlphaBs AlphaBs force-pushed the feature-support-dotnet-8 branch from 2f026f7 to daba775 Compare June 7, 2024 08:14
@AlphaBs AlphaBs merged commit 0acf3b5 into CmlLib:dev Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants