如何使用C#在Windows智能设备应用程序中获取应用程序启动路径 [英] how to get the application startup path in windows smart device application using C#

查看:91
本文介绍了如何使用C#在Windows智能设备应用程序中获取应用程序启动路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,



如何在Windows中获取应用程序启动路径智能设备应用程序使用C#下面的代码并不能帮助我们获取启动路径。



string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly()。GetName()。CodeBase);



它只返回// ProgramFiles //应用程序名称。



问候,

G Mariappan

解决方案

这是获取应用程序启动路径的方法

string path = System.IO.Path.GetDirectoryName( System.Reflection.Assembly.GetExecutingAssembly()。GetName()。CodeBase);

它工作正常,但智能设备找不到硬潜点路径。它在模拟器中找到应用程序文件路径

Dear All,

How to get the application startup path in windows Smart device application using C# below code doesnt help us to get the startup path.

string path = System.IO.Path.GetDirectoryName( System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase );

it simply returns the //ProgramFiles//Application Name.

Regards,
G Mariappan

解决方案

This is the way to get the application startup path
string path = System.IO.Path.GetDirectoryName( System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase );
its working fine but the smart device doesnt find the hard dive path.It locates the appliication file path in emulator .


这篇关于如何使用C#在Windows智能设备应用程序中获取应用程序启动路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆