Equivalent to system.Reflection.Assembly.GetExecutingAssembly (). Fullname

I am currently migrating the Silverlight application for Windows to Windows Mobile using the UWP platform.

In my old code, I used a function to get ExecutingAssemblyName as follows:

        public static string ExecutingAssemblyName {
        get {
            string name = System.Reflection.Assembly.GetExecutingAssembly().FullName;
            return name.Substring(0, name.IndexOf(','));
        }
    }

Now I want to get the same result in Windows mobile, but the functions described in the following link , not everything seems to be in Windows mobile. The only ones I can find are:

  • System.Reflection.Assembly.equals
  • System.Reflection.Assembly.load
  • System.Reflection.Assembly.ReferenceEquals

Can anyone get the same result now? Or should I start rewriting a lot of code.

Thanks already

+4
1

, ( Romasz).

this.GetType().GetTypeInfo().Assembly.FullName

UWP , , .NET Native.

.NET Native JIT. , . , , .

. .NET-.

(Resources.resw) (, , ) "".

enter image description here

+6

Source: https://habr.com/ru/post/1615059/


All Articles