[GH-ISSUE #1380] [Feature Request] Consider enabling <RollForward>major</RollForward> for ScreenToGif.exe #1018

Closed
opened 2026-02-26 09:33:18 +03:00 by kerem · 0 comments
Owner

Originally created by @nil4 on GitHub (Mar 23, 2025).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1380

Originally assigned to: @NickeManarin on GitHub.

Is your feature request related to a problem? Please describe.

ScreenToGif currently targets net8.0:

github.com/NickeManarin/ScreenToGif@998e61923b/ScreenToGif/ScreenToGif.csproj (L3)

Trying to start ScreenToGif.exe on a machine where a later version (e.g. .NET 9) is installed, but .NET 8.x is not installed, currently fails. The rather unfortunate "You must install or update .NET to run this application" dialog appears and the program is blocked from launching:

Image

Describe the solution you'd like

Consider adding <RollForward>major</RollForward> to ScreenToGif.csproj so that future releases do not need this workaround, and ScreenToGif.exe starts on .NET 8 or any later major versions out of the box.

ref. https://learn.microsoft.com/en-us/dotnet/core/versions/selection#control-roll-forward-behavior

Describe alternatives you've considered

End-users can resort to a rather clunky, but working, workaround -- define a batch file to set the roll-forward policy via an environment variable, e.g.

set DOTNET_ROLL_FORWARD=major
ScreenToGif.exe

This solves the issue of launching correctly with a later .NET runtime available, but should not be necessary if the roll-forward policy is defined in the project file. Doing that would allow ScreenToGif.exe to start on .NET 8, 9 or any later version.

Additional context

ref. https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#rollforward

Originally created by @nil4 on GitHub (Mar 23, 2025). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1380 Originally assigned to: @NickeManarin on GitHub. **Is your feature request related to a problem? Please describe.** ScreenToGif currently targets `net8.0`: https://github.com/NickeManarin/ScreenToGif/blob/998e61923bf4572482e7fac9a3a0abf970cc147a/ScreenToGif/ScreenToGif.csproj#L3 Trying to start `ScreenToGif.exe` on a machine where a later version (e.g. .NET 9) is installed, but .NET 8.x is not installed, currently fails. The rather unfortunate "*You must install or update .NET to run this application*" dialog appears and the program is blocked from launching: ![Image](https://github.com/user-attachments/assets/90dd9715-f9d8-4ab1-be8b-e5cbe4983f56) **Describe the solution you'd like** Consider adding `<RollForward>major</RollForward>` to `ScreenToGif.csproj` so that future releases do not need this workaround, and ScreenToGif.exe starts on .NET 8 **or any later major versions** out of the box. ref. https://learn.microsoft.com/en-us/dotnet/core/versions/selection#control-roll-forward-behavior **Describe alternatives you've considered** End-users can resort to a rather clunky, but working, workaround -- define a batch file to set the roll-forward policy via an environment variable, e.g. ```cmd set DOTNET_ROLL_FORWARD=major ScreenToGif.exe ``` This solves the issue of launching correctly with a later .NET runtime available, but should not be necessary if the roll-forward policy is defined in the project file. Doing that would allow `ScreenToGif.exe` to start on .NET 8, 9 or any later version. **Additional context** ref. https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#rollforward
kerem 2026-02-26 09:33:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#1018
No description provided.