c# - Determine Local Uri (Assembly.GetEntryAssembly() returns null) -


i have project-folder called testa, folder in called testb , in 1 folder name testc. in testc image (image.png) , want know how uri.

i need call function , give uri function

i tried many things like:

class.function(new uri("pack://application:,,,/testb/testc/image.png")); 

but exception:

assembly.getentryassembly() returns null.

i pretty sure, part isn´t correct: "pack://application:,,,/testb/testc/image.png"

thanks suggestions :)


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -