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

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

Open
nil4 opened this issue Mar 23, 2025 · 0 comments · May be fixed by #1381
Open

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

nil4 opened this issue Mar 23, 2025 · 0 comments · May be fixed by #1381
Assignees
Labels
🔷Enhancement Type • Improvements for the software. ⬜ Pending Status • This issue stills needs to be analyzed.

Comments

@nil4
Copy link

nil4 commented Mar 23, 2025

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 ILSpy.csproj so that future releases do not need this workaround, and ILSpy 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

@nil4 nil4 added ⬜ Pending Status • This issue stills needs to be analyzed. 🔷Enhancement Type • Improvements for the software. labels Mar 23, 2025
nil4 added a commit to nil4/ScreenToGif that referenced this issue Mar 23, 2025
Allow `ScreenToGif.exe` to run when .NET 8 (the version it currently targets)
is not installed, but a later major version, e.g. .NET 9, is available.

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

ref. NickeManarin#1380
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔷Enhancement Type • Improvements for the software. ⬜ Pending Status • This issue stills needs to be analyzed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants