I struggled a bit to upgrade our v6 project to v7 on Mac but succeeded.
I’ve copied the Mac VS Project to a new Project that are targeting Windows like in the cross platform guide.
It mostly works, except for the installer. I have 7.0.20295.18003
installed, and I’ve tried to uninstall RhinoCommon and reinstall that exact version with NuGet. I’ve tried deleting the bin
and obj
folders. The logs are below indicate I have some kind of wrong version: 7.0.20295.18000
(notice the 0 at the end instead of the 3). Is there any other directories I can try to delete, caches I can try to clear etc?
(I got a much simpler plugin working with the above method so it should sort of be working )
10/27/2020 21:52:54 6016 Info Start: rhiexec
version 7.0.20295.18003
64-bit
unknown 10.0.17763.0
10/27/2020 21:52:54 6016 Info arguments:
"C:\Users\Administrator\source\repos\...\stykka-windows-plugin.rhi"
10/27/2020 21:52:54 6016 Info Logging started: 2020/10/27 21:52:54
10/27/2020 21:52:54 6016 Debug Unknown InstallerDialog_Load starting (0%)
10/27/2020 21:52:54 6016 Debug Unknown InstallerDialog_Load ending (0%)
10/27/2020 21:52:54 6016 Debug Unknown ShowInitializationDialog starting (0%)
10/27/2020 21:52:54 6016 Debug Unknown SwapPanel starting (0%)
10/27/2020 21:52:54 6016 Debug Unknown SwapPanel ending (0%)
10/27/2020 21:52:54 6016 Debug Unknown ShowPanel ending (0%)
10/27/2020 21:52:54 6016 Debug Unknown ShowInitializationDialog ending (0%)
10/27/2020 21:52:54 6016 Debug ExecuteChildProcess starting: x86, /INSPECTPLUGIN "C:\Users\Administrator\AppData\Local\Temp\2\rhiexec\0f34755c-9fe1-43ab-945e-6138ab5ed39a\StykkaRhinoPluginWin.rhp"
10/27/2020 21:52:54 6016 Debug Starting: C:\Program Files\McNeel\Rhino Installer Engine\x64\..\x86\rhiexec.exe /loglevel=Debug /logfile="C:\Users\Administrator\AppData\Roaming\McNeel\Rhinoceros\7.0\logs\stykka-windows-plugin (20201027-215254).log" /noerrorreports /INSPECTPLUGIN "C:\Users\Administrator\AppData\Local\Temp\2\rhiexec\0f34755c-9fe1-43ab-945e-6138ab5ed39a\StykkaRhinoPluginWin.rhp"
10/27/2020 21:52:54 6016 Debug Unknown ShowPanel starting (0%)
10/27/2020 21:52:54 6016 Info Initializing INIT START: (0%)
10/27/2020 21:52:54 6016 Info Unknown Found 1 plug-ins (0%)
10/27/2020 21:52:54 6016 Info Initializing Initializing Installer (0%)
10/27/2020 21:52:54 6016 Info Unknown Found 1 plug-ins (0%)
10/27/2020 21:52:54 6016 Debug Unknown Executing 32-bit Plug-in Inspector for 'C:\Users\Administrator\AppData\Local\Temp\2\rhiexec\0f34755c-9fe1-43ab-945e-6138ab5ed39a\StykkaRhinoPluginWin.rhp' (0%)
10/27/2020 21:52:54 4260 Info Start: rhiexec
version 7.0.20295.18003
32-bit
unknown 10.0.17763.0
10/27/2020 21:52:54 4260 Info arguments:
"/loglevel=Debug"
"/logfile=C:\Users\Administrator\AppData\Roaming\McNeel\Rhinoceros\7.0\logs\stykka-windows-plugin (20201027-215254).log"
"/noerrorreports"
"/INSPECTPLUGIN"
"C:\Users\Administrator\AppData\Local\Temp\2\rhiexec\0f34755c-9fe1-43ab-945e-6138ab5ed39a\StykkaRhinoPluginWin.rhp"
10/27/2020 21:52:54 4260 Info Logging started: 2020/10/27 21:52:54
10/27/2020 21:52:54 6016 Info Unknown Package not recognized as Localization Package (0%)
10/27/2020 21:52:55 4260 Error Exception: System.IO.FileLoadException
Message: Cannot resolve dependency to assembly 'RhinoCommon, Version=7.0.20295.18000, Culture=neutral, PublicKeyToken=552281e97c755530' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.
Source: mscorlib
StackTrace: at System.ModuleHandle.ResolveMethod(RuntimeModule module, Int32 methodToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount)
at System.ModuleHandle.ResolveMethodHandleInternalCore(RuntimeModule module, Int32 methodToken, IntPtr[] typeInstantiationContext, Int32 typeInstCount, IntPtr[] methodInstantiationContext, Int32 methodInstCount)
at System.ModuleHandle.ResolveMethodHandleInternal(RuntimeModule module, Int32 methodToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.Reflection.CustomAttributeData..ctor(RuntimeModule scope, CustomAttributeRecord caRecord)
at System.Reflection.CustomAttributeData.GetCustomAttributes(RuntimeModule module, Int32 tkTarget)
at System.Reflection.CustomAttributeData.GetCustomAttributesInternal(RuntimeAssembly target)
at System.Reflection.RuntimeAssembly.GetCustomAttributesData()
at System.Reflection.CustomAttributeData.GetCustomAttributes(Assembly target)
at RhiExec.PluginInfo.GetPluginAttributes(AsyncReporter reporter)
at RhiExec.PluginInfo.InspectPlugin(String rhp_file, AsyncReporter reporter)
at RhiExec.InstallerPlugin.InspectPlugin(String PathToPlugin, AsyncReporter reporter)
at RhiExec.Program.Main(String[] args)
10/27/2020 21:52:55 4260 Debug FinalExit Exiting installation with return code Exception
10/27/2020 21:52:55 4260 Info Logging ended: 2020/10/27 21:52:55
10/27/2020 21:52:55 6016 Debug ExecuteChildProcess complete. Child process returned: Exception
10/27/2020 21:52:55 6016 Debug ExecuteChildProcess starting: x64, /INSPECTPLUGIN "C:\Users\Administrator\AppData\Local\Temp\2\rhiexec\0f34755c-9fe1-43ab-945e-6138ab5ed39a\StykkaRhinoPluginWin.rhp"
10/27/2020 21:52:55 6016 Debug Starting: C:\Program Files\McNeel\Rhino Installer Engine\x64\..\x64\rhiexec.exe /loglevel=Debug /logfile="C:\Users\Administrator\AppData\Roaming\McNeel\Rhinoceros\7.0\logs\stykka-windows-plugin (20201027-215254).log" /noerrorreports /INSPECTPLUGIN "C:\Users\Administrator\AppData\Local\Temp\2\rhiexec\0f34755c-9fe1-43ab-945e-6138ab5ed39a\StykkaRhinoPluginWin.rhp"
10/27/2020 21:52:55 2648 Info Start: rhiexec
version 7.0.20295.18003
64-bit
unknown 10.0.17763.0
10/27/2020 21:52:55 2648 Info arguments:
"/loglevel=Debug"
"/logfile=C:\Users\Administrator\AppData\Roaming\McNeel\Rhinoceros\7.0\logs\stykka-windows-plugin (20201027-215254).log"
"/noerrorreports"
"/INSPECTPLUGIN"
"C:\Users\Administrator\AppData\Local\Temp\2\rhiexec\0f34755c-9fe1-43ab-945e-6138ab5ed39a\StykkaRhinoPluginWin.rhp"
10/27/2020 21:52:55 2648 Info Logging started: 2020/10/27 21:52:55
10/27/2020 21:52:55 2648 Error Exception: RhiExec.PackageNotCompatibleException
Message: This plug-in is not compatible with the Rhino Installer Engine.
Plug-in: C:\Users\Administrator\AppData\Local\Temp\2\rhiexec\0f34755c-9fe1-43ab-945e-6138ab5ed39a\StykkaRhinoPluginWin.rhp
For details on the Rhino Installer Engine, please visit http://developer.rhino3d.com/guides/general/rhino-installer-engine
Source: RhiExec
StackTrace: at RhiExec.PluginInfo.InspectPlugin(String rhp_file, AsyncReporter reporter)
at RhiExec.InstallerPlugin.InspectPlugin(String PathToPlugin, AsyncReporter reporter)
at RhiExec.Program.Main(String[] args)
10/27/2020 21:52:55 2648 Debug FinalExit Exiting installation with return code InspctPkgNotCompatible
10/27/2020 21:52:55 2648 Info Logging ended: 2020/10/27 21:52:55
10/27/2020 21:52:55 6016 Debug ExecuteChildProcess complete. Child process returned: InspctPkgNotCompatible
10/27/2020 21:52:55 6016 Error Unknown Plug-in inspection failed (0%)
10/27/2020 21:52:55 6016 Debug Unknown Executing 64-bit Plug-in Inspector for 'C:\Users\Administrator\AppData\Local\Temp\2\rhiexec\0f34755c-9fe1-43ab-945e-6138ab5ed39a\StykkaRhinoPluginWin.rhp' (0%)
10/27/2020 21:52:55 6016 Error This package is not compatible with the Rhino Installer Engine.
You may need to update to the latest Rhino Service Release to use this plug-in.
DEVELOPERS:
For information on making your plug-in compatible, visit http://developer.rhino3d.com/guides/general/rhino-installer-engine
10/27/2020 21:52:56 6016 Debug Unknown ShowPanel starting (0%)
10/27/2020 21:52:56 6016 Debug Unknown SwapPanel ending (0%)
10/27/2020 21:52:56 6016 Debug Unknown ShowPanel ending (0%)
10/27/2020 21:52:56 6016 Debug Unknown SwapPanel starting (0%)
Thanks!