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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -