https://bugs.winehq.org/show_bug.cgi?id=43879
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Summary|missing file for program - |Chummer5 (.NET 4.x app) |mscoree.dll |fails to load, complains | |about missing 'mscoree.dll' CC| |focht@gmx.net URL| |https://github.com/chummer5 | |a/chummer5a/releases/
--- Comment #7 from Anastasius Focht focht@gmx.net --- Hello folks,
possible reasons:
* recycled/broken WINEPREFIX * outdated 'winetricks' * broken Wine version * broken host dependencies * didn't tell the whole story
You likely operate on a broken WINEPREFIX.
Also you didn't tell the exact version of this 'chummer5' app. Always provide the app version and download when reporting bugs otherwise you won't get proper help.
https://wiki.winehq.org/Bugs#How_to_report
https://www.reddit.com/r/Shadowrun/wiki/index#wiki_shadow_resources
Old .NET 4.0 based project: https://github.com/chummer5a/chummer5 Recent one (successor), .NET 4.x based: https://github.com/chummer5a/chummer5a/releases
Depending on the app version downloaded one might encounter surprise issues...
https://github.com/chummer5a/chummer5a/releases/download/5.178.0/Chummer.5.1...
Using 'winetricks -q dotnet40' and running the app yields:
--- snip --- $ wine ./Chummer5.exe ... Unhandled Exception: System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. 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 System.Resources.ManifestBasedResourceGroveler.GetNeutralResourcesLanguage(Assembly a, UltimateResourceFallbackLocation& fallbackLocation) at System.Resources.ResourceManager.CommonSatelliteAssemblyInit() at System.Resources.ResourceManager..ctor(Type resourceSource) at System.ComponentModel.ComponentResourceManager..ctor(Type t) at Chummer.frmMain.InitializeComponent() in C:\projects\chummer5a\Chummer\frmMain.Designer.cs:line 31 at Chummer.frmMain..ctor() in C:\projects\chummer5a\Chummer\frmMain.cs:line 18 at Chummer.Program.Main() in C:\projects\chummer5a\Chummer\Program.cs:line 61 --- snip ---
https://stackoverflow.com/questions/13748055/could-not-load-type-system-runt...
Lengthy in-detail article:
http://www.hurryupandwait.io/blog/what-you-should-know-about-running-ilmerge...
--- quote --- So possible workarounds are to fall back to 4.0 on the build machine, install .NET 4.5 on the target machine and the real fix, to rebuild the project from the provided source code, fixing the ILMerge command. --- quote ---
Fortunately the devs fixed their build settings and/or machine with later versions, the app now explicitly requests .NET Framework 4.5.x
https://github.com/chummer5a/chummer5a/releases/tag/5.195.0
Installing .NET 4.5 using 'winetricks -q dotnet452' lets the app run.
Alternatively use much older versions of the app which run with .NET 4.0
$ sha1sum Chummer5.195.0.zip 77caaff38f5159eecb6902586759bf2e75a38dc1 Chummer5.195.0.zip
$ du -sh Chummer5.195.0.zip 5.3M Chummer5.195.0.zip
$ wine --version wine-2.18-97-gfb8226f639
Regards