Apparently, the implementation of Assembly.Load () in Silverlight requires a full / strong name.
eg. it works:
Assembly.Load("MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=...");
until this works, even if MyAssembly is already loaded:
Assembly.Load("MyAssembly");
Is there a workaround to use a simple name?
, Silverlight . ( , ) -. , XAML , , ( ), -
XamlReader.Load("<my:ClassName xmlns:my='clr-namespace:MyNamespace;assembly=MyAssemblyShortName' />")
.
, , , typeof , , :
typeof
var assembly = typeof(MyNamespace.SubNamespace.Type).Assembly;
Source: https://habr.com/ru/post/1749416/More articles:When you switch to a production environment, the web application crashes. What server permissions do I need? - phpIs the vertical space equivalent of \ makebox? - vertical-alignmentOutlook Object Library for Visual Studio - c #How to create a boot installation from bootstrapper packages? - .netDevelopment of a modern graphical interface Windows Mobile 6.5 - user-interfaceHow can I implicitly convert another structure to my type? - variable-assignmentLinux real-mode interface in the Linux kernel module - cGet FixedDocuments from FixedDocumentSequence - c #Design Solution - Scaling Web Application Architecture - architectureCalculating the correlation coefficient using PostgreSQL? - postgresqlAll Articles