I installed dotnet8 via winetricks, which then installed dotnet8 for x86 and x64. But when starting the program that asked for dotnet8 in the first place, it still asks for it. Uninstalling and reinstalling dotnet8 (via winetricks) didn't change anything.
Only when I downloaded and installed dotnet8 x64 manually would the program recognize dotnet8 as installed and start and run as expected.
I noticed that the cached install exe files for dotnet8 in the winetricks cache folder are about half the size as the one I downloaded manually. Also, winetricks complained when calling dotnet8:
warning: Unknown file arch of /usr/bin/wineserver.
warning: Unknown file arch of /usr/bin/wine.
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
warning: WoW64 type could not be detected.
I've seen at least some of those warnings before in other contexts, never cared because everything seems to work ok otherwise. But maybe this can be a factor for why dotnet8 installed by winetricks is not recognized by the program that asked for it.
Other dotnet versions never had such a problem, i.e. they all worked fine when installing via winetricks, namely dotnet20, dotnet40, dotnet45, dotnet46, dotnet461, dotnet462, dotnet472.

I installed dotnet8 via winetricks, which then installed dotnet8 for x86 and x64. But when starting the program that asked for dotnet8 in the first place, it still asks for it. Uninstalling and reinstalling dotnet8 (via winetricks) didn't change anything.
Only when I downloaded and installed dotnet8 x64 manually would the program recognize dotnet8 as installed and start and run as expected.
I noticed that the cached install exe files for dotnet8 in the winetricks cache folder are about half the size as the one I downloaded manually. Also, winetricks complained when calling dotnet8:
I've seen at least some of those warnings before in other contexts, never cared because everything seems to work ok otherwise. But maybe this can be a factor for why dotnet8 installed by winetricks is not recognized by the program that asked for it.
Other dotnet versions never had such a problem, i.e. they all worked fine when installing via winetricks, namely dotnet20, dotnet40, dotnet45, dotnet46, dotnet461, dotnet462, dotnet472.