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' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -