C# Application.ExecutablePath on WPF Framework 3.5 -


this line fine in winform framework3.5 not in wpf framework3.5.

path.getdirectoryname(application.executablepath);  

how can exe path on wpf app ?

there several ways exe path. try next:

  • application.startuppath
  • path.directoryname(environment.getcommandlineargs()[0])
  • path.directoryname(system.diagnostics.process.getcurrentprocess().mainmodule.filename)
  • path.directoryname(assembly.getentryassembly().location)
  • system.reflection.assembly.getentryassembly().location

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -