I found these registry settings
Assuming the user installed the Mono 64 bit MSI, can I in C# code read the registry and rely on
mono-2.0-sgen.dll
is located. I am asking because
(I assume that anything under Computer\\HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node would be 32 bit and would not indicate 64bit mono.)
Update I've asked on Mono-Github and here's their answer: https://github.com/mono/mono/issues/10535
.NET provides a series of classes for reading registry entry Here is an example of how to do that. Another example is here
In your case, the key location is number 1 from picture posted, the key is "Architecture" and it's "x64" and so on
Try that code from the above link and see if works. Some adaptation needs to be done.
If you get an error regarding administrative rights try to run Visual Studio as administrator.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.