2
我将代码添加到在Windows CE上创建的程序中。我目前的问题是无法识别Application.StartupPath。什么是我需要使用的等效代码行?什么是Application.StartupPath的Windows CE等价物?
我将代码添加到在Windows CE上创建的程序中。我目前的问题是无法识别Application.StartupPath。什么是我需要使用的等效代码行?什么是Application.StartupPath的Windows CE等价物?
您可以通过
Path.GetDirectoryName (Assembly.GetExecutingAssembly().GetName().CodeBase);
http://stackoverflow.com/questions/881251/how-to-get-the-path-of-appwithout-app-exe的可能重复检索 – ctacke 2010-04-21 13:09:14