Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

GetManifestResourceNames() return always null

$
0
0

Hello,

First of all, I post here because, on Microsoft forum, I am stuck into an infinite loop at login.

So I created a new project, Xamarin form with android and IOS. Added 1 png image to the folder drawable into my Android project. Set it as embedded resource.

But, in the MainPage.xaml.cs, the following code return null

`var assembly = typeof(MainPage).GetTypeInfo().Assembly;

        // Use this help aid to figure out what the actual manifest resource name is.
        string[] resources = assembly.GetManifestResourceNames();

`

It's a new project so, there is nothing more.

I am missing something ? Thanks


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>