Closed Alerinos closed 3 years ago
Hi @Alerinos , this seems to be a known issue with legacy net-framework installations. You will probably need to
Let me know if this helps.
Even better, just use netcoreapp and use multi-targeting. Ship the net40-build to your tester, cf.:
Hi, unfortunately I can't test this problem again because the tester is on vacation. Do version 4.0 for users below windows 10 and 4.5 for windows 10 users?
Exactly, that should be it.
Closed for inactivity
Hi, I have a problem. One of my testers launched the application and threw this error out of him. Can I ask for help? I'm just learning C #. Thank you
System.TypeLoadException: Nie można załadować typu 'System.Runtime.CompilerServices.ExtensionAttribute' z zestawu '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(String baseName, Assembly assembly) at MS.Internal.Resources.ResourceManagerWrapper.get_ResourceManager() at MS.Internal.Resources.ResourceManagerWrapper.GetStream(String name) at MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access) at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access) at System.IO.Packaging.PackagePart.GetStream() at System.Windows.Application.GetResourceStream(Uri uriResource) at FontAwesome.Sharp.FormsIconHelper.GetFontBytes(String fontFile, Assembly assembly, String path) at FontAwesome.Sharp.FormsIconHelper.AddFont(PrivateFontCollection fonts, String fontFile, Assembly assembly, String path) at FontAwesome.Sharp.FormsIconHelper.InitializeFonts() at FontAwesome.Sharp.FormsIconHelper..cctor()
System.TypeInitializationException: Inicjator typów zgłosił wyjątek dla typu 'FontAwesome.Sharp.FormsIconHelper'.
at FontAwesome.Sharp.FormsIconHelper.FontFamilyFor(IconChar iconChar) at FontAwesome.Sharp.IconButton..ctor() at Launcher.WindowInstall.InitializeComponent() at Launcher.WindowInstall..ctor() at Launcher.Program.Main(String[] args)