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

Google sheets equipment borrowing system -

c# - Ploeh AutoFixture was unable to create an instance from System.Runtime.Serialization.ExtensionDataObject -