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

ImageGlass not starting with .Net 8.0 installed. #2084

Closed
Big-Iron-Cheems opened this issue Feb 5, 2025 · 7 comments
Closed

ImageGlass not starting with .Net 8.0 installed. #2084

Big-Iron-Cheems opened this issue Feb 5, 2025 · 7 comments
Labels

Comments

@Big-Iron-Cheems
Copy link

System information

  • Windows OS version: Windows 10 Pro 22H2
  • ImageGlass version: 9.2.0.1208
  • ImageGlass release: Classic

To Reproduce

Steps to reproduce the behavior:

  1. Install via Scoop scoop bucket add extras; scoop install extras/imageglass
  2. Install .Net 8 Desktop Runtime
  3. Start ImageGlass
  4. Popup appears unexpectedly

Actual behavior

The program still complains about the missing runtime.

Expected behavior

The program should run as intended, I have installed the dependencies as specified.

Screenshots / Video / Sample image file

Image
Image

Additional context

dotnet --list-runtimes
Microsoft.NETCore.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

This wasn't an issue with the now unsupported ImageGlass 8.
Let me know if there's any info I can add to help.

@d2phap
Copy link
Owner

d2phap commented Feb 8, 2025

@Big-Iron-Cheems Can you try installing the latest version .NET Desktop Runtime 8.0.12?

@Big-Iron-Cheems
Copy link
Author

Here's what I did:

  1. Remove .Net Desktop Runtime 8.0.0
  2. Install .Net Desktop Runtime 8.0.12
  3. Restart the device
  4. Open ImageGlass

The issue persists.

dotnet --list-runtimes
Microsoft.NETCore.App 8.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.12 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

@d2phap
Copy link
Owner

d2phap commented Feb 10, 2025

Thanks @Big-Iron-Cheems.
I'm still not sure about the issue. Can you run this command and send me the output?

dotnet --info

@d2phap
Copy link
Owner

d2phap commented Feb 10, 2025

The other option you can try is to open the ImageGlass.runtimeconfig.json and igcmd.runtimeconfig.json file, and add "rollForward": "LatestMinor":

{
  "runtimeOptions": {
    "tfm": "net8.0",
+    "rollForward": "LatestMinor",
    "frameworks": [
      {
        "name": "Microsoft.NETCore.App",
        "version": "8.0.0"
      },
      {
        "name": "Microsoft.WindowsDesktop.App",
        "version": "8.0.0"
      }
    ],
    "configProperties": {
      "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": true,
      "CSWINRT_USE_WINDOWS_UI_XAML_PROJECTIONS": false
    }
  }
}

@Big-Iron-Cheems
Copy link
Author

dotnet --info

Host:
  Version:      8.0.12
  Architecture: x64
  Commit:       89ef51c5d8
  RID:          win-x64

.NET SDKs installed:
  No SDKs were found.

.NET runtimes installed:
  Microsoft.NETCore.App 8.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 8.0.12 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
  None

Environment variables:
  DOTNET_ROOT       [G:\Scoop\apps\dotnet-sdk\current]

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

Image
Adding minor version compat didn't seem to fix the issue as well.

@d2phap
Copy link
Owner

d2phap commented Feb 10, 2025

Should it be the issue of DOTNET_ROOT?
Your installed runtime location is C:\Program Files\dotnet but the variable points to G:\Scoop\apps\dotnet-sdk\current.

Can you try deleting the variable or point it to the correct location?

Btw, I will create self-contained release in the next versions, it won't be any issues with the .NET runtime.

@Big-Iron-Cheems
Copy link
Author

Great catch on the DOTNET_ROOT var, deleting it seems to make the app work properly 👍
After that, it works just fine even without setting the rollForward property.

I'll close the issue, thanks for your help.
Looking forward to your future releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants