Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

User Image
Bradley W
1 discussion post
We have been going through the process of installing .NET 8.0.x runtime and removing .NET 7.0.x runtime from our network devices since it reached End of Life on May 14, 2024. After installing .NET 8 runtime and removing .NET 7 runtime from a few test devices, we found that Display fusion stopped working and shows the error "You must install or update .NET to run this application. Framework: 'Microsoft.NETCore.APP', versin '7.0.0' (x64)" after launching the application. The Display Fusion download link states under the system requirements “The Microsoft .NET 8 desktop runtime is required and will be installed automatically if needed”. I thought maybe the 10.1.2 Display Fusion installer had changed since the last time we downloaded it but after redownloading the installer and comparing the hashes, they were the same installer. I uninstalled .NET 7 runtime on a computer and reinstalled the Display Fusion using the installer that I had just downloaded but I was greeted with a notice that .NET 7 Runtime would be installed, which contradicts what the website says, and sure enough it was installed. After looking through the program files, I discovered many *.runtimeconfig.json files that all had the same json configuration and created a simple powershell script to replace all the runtimeconfig.json file contents to list the version 8.0.0 instead of 7.0.0. After running the script, I was able to open and run Display Fusion using .NET Runtime 8.

Here is the script that I created. Hope this helps someone.

$folderPath = "C:\Program Files\DisplayFusion"
$replacementContent = @"
{
"runtimeOptions": {
"tfm": "net8.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "8.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "8.0.0"
}
],
"configProperties": {
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
}
}
}
"@

# Get all files with .runtimeconfig extension in the specified folder
$runtimeConfigFiles = Get-ChildItem -Path $folderPath -Filter "*runtimeconfig*"

# Replace the contents of each file
foreach ($file in $runtimeConfigFiles) {
Set-Content -Path $file.FullName -Value $replacementContent
}
Jun 7, 2024  • #1
User Image
March22
1 discussion post
Thank you for sharing - this was a life saver! :)
Jun 24, 2024  • #2
User Image
Kevin_70
1 discussion post
Bradley W, your fix worked great! I enjoy DisplayFusion and for a moment there, I thought I was going to be forced to change to a different tool. But, I was able to get it functioning again based on what you shared.

Many thanks!!
Jul 17, 2024  • #3
User Image
Jeff Weeks
7 discussion posts
Clipboard Fusion is also affected.
Sep 19, 2024  • #4
User Image
Laurie Flandrau
4 discussion posts
Thank you for the information. How do you run the script?
Sep 19, 2024  • #5
User Image
Jeff Weeks
7 discussion posts
Quote:
Thank you for the information. How do you run the script?

Start PowerShell as Administrator and copy the entire script into PowerShell and press enter, done
You can replace DisplayFusion with ClipboardFusion in the script and press enter again, done.
Uninstall the Microsoft Windows Desktop Runtime 7.0.21.
Exit DisplayFusion and restart it will prompt to install the 8.x Runtime
If needed exit ClipboardFusion and restart after installing the 8.x Runtime. It will start. You only have to install the 8.x Runtime once.
Sep 19, 2024  • #6
User Image
Jeff Weeks
7 discussion posts
No need for another script. Bradley W's script at the beginning of the post is sufficient.
Sep 20, 2024  • #7
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(2)  Login to Vote(-)