Skip to content

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

Closed
@nil4

Description

@nil4

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

ScreenToGif currently targets net8.0:

<TargetFramework>net8.0-windows10.0.17763.0</TargetFramework>

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

Metadata

Metadata

Assignees

Labels

⬜ CompletedStatus • Issue solved.🔷EnhancementType • Improvements for the software.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions