.NET Framework 7.5.2 Error when runningkomorebic in PowerShell 7 as admin or non-admin #647

Open
opened 2026-01-05 14:52:11 +01:00 by adam · 0 comments
Owner

Originally created by @yaluft on GitHub (Jul 18, 2025).

Description
When attempting to run komorebic, the following error is displayed:
Error: Version 7.5.2 of the .NET Framework is not installed and it is required to run version 7 of Windows PowerShell.
Environment

OS: Windows [version]
Komorebi Version: ```powershell
komorebi 0.1.38
branch:master
commit_hash:6416c0b6
build_time:2025-06-22 01:07:01 +00:00
build_env:rustc 1.87.0 (17067e9ac 2025-05-09),stable-x86_64-pc-windows-msvc

PowerShell Version: 7.5.2
.NET Runtimes Installed: `Microsoft.NETCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]`


Steps to Reproduce

Install komorebi via [installation method used]
Run any komorebic command (e.g., komorebic start)
Observe the .NET Framework error

Expected Behavior
Komorebic should run without .NET Framework errors.
Actual Behavior
The application fails to start with a .NET Framework 7.5.2 requirement error.
Additional Context

The error message mentions "Version 7.5.2 of the .NET Framework" which is unusual as .NET versions are typically 6.0, 7.0, 8.0, etc.
This might be a version detection issue or incorrect error message
Installing .NET 7 and 8 runtimes does not resolve the issue

Possible Solutions

Update the .NET detection logic to properly identify installed runtimes
Clarify the exact .NET runtime version requirement in documentation
Bundle the required .NET runtime with the installer
Provide clearer error messages about which .NET version is actually required

Workaround
Currently attempting to install multiple .NET runtime versions:
powershellwinget install Microsoft.DotNet.Runtime.7
winget install Microsoft.DotNet.Runtime.8

Pull Request Description
Title: Fix .NET Runtime Detection and Error Messages
Description
This PR addresses the incorrect .NET Framework version error message and improves runtime detection.
Changes Made:

Updated .NET Runtime Detection

Fixed version parsing to properly detect .NET 7.x and 8.x runtimes
Removed reference to non-existent ".NET Framework 7.5.2"


Improved Error Messages

Clear indication of which .NET runtime version is required
Added helpful installation instructions in error output


Documentation Updates

Added .NET runtime requirements to README.md
Created troubleshooting section for common runtime issues



Files Changed:

src/main.rs or equivalent - Updated runtime detection logic
README.md - Added .NET runtime requirements
docs/troubleshooting.md - Added .NET runtime troubleshooting guide

Testing:

Tested on Windows 11 with various .NET runtime configurations
Verified error messages are clear and actionable
Confirmed komorebi starts correctly with proper runtime installed
Originally created by @yaluft on GitHub (Jul 18, 2025). Description When attempting to run komorebic, the following error is displayed: Error: Version 7.5.2 of the .NET Framework is not installed and it is required to run version 7 of Windows PowerShell. Environment OS: Windows [version] Komorebi Version: ```powershell komorebi 0.1.38 branch:master commit_hash:6416c0b6 build_time:2025-06-22 01:07:01 +00:00 build_env:rustc 1.87.0 (17067e9ac 2025-05-09),stable-x86_64-pc-windows-msvc ``` PowerShell Version: 7.5.2 .NET Runtimes Installed: `Microsoft.NETCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]` Steps to Reproduce Install komorebi via [installation method used] Run any komorebic command (e.g., komorebic start) Observe the .NET Framework error Expected Behavior Komorebic should run without .NET Framework errors. Actual Behavior The application fails to start with a .NET Framework 7.5.2 requirement error. Additional Context The error message mentions "Version 7.5.2 of the .NET Framework" which is unusual as .NET versions are typically 6.0, 7.0, 8.0, etc. This might be a version detection issue or incorrect error message Installing .NET 7 and 8 runtimes does not resolve the issue Possible Solutions Update the .NET detection logic to properly identify installed runtimes Clarify the exact .NET runtime version requirement in documentation Bundle the required .NET runtime with the installer Provide clearer error messages about which .NET version is actually required Workaround Currently attempting to install multiple .NET runtime versions: powershellwinget install Microsoft.DotNet.Runtime.7 winget install Microsoft.DotNet.Runtime.8 Pull Request Description Title: Fix .NET Runtime Detection and Error Messages Description This PR addresses the incorrect .NET Framework version error message and improves runtime detection. Changes Made: Updated .NET Runtime Detection Fixed version parsing to properly detect .NET 7.x and 8.x runtimes Removed reference to non-existent ".NET Framework 7.5.2" Improved Error Messages Clear indication of which .NET runtime version is required Added helpful installation instructions in error output Documentation Updates Added .NET runtime requirements to README.md Created troubleshooting section for common runtime issues Files Changed: src/main.rs or equivalent - Updated runtime detection logic README.md - Added .NET runtime requirements docs/troubleshooting.md - Added .NET runtime troubleshooting guide Testing: Tested on Windows 11 with various .NET runtime configurations Verified error messages are clear and actionable Confirmed komorebi starts correctly with proper runtime installed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#647