How to get the current path of the application via .NET Compact Framework

xiaoxiao2021-03-06  65

Don't expect his performance when it is developed in .NET Compact Framework (CF), there is still a lot of problems even in the current SP2.

On WIN CE, there is no drive concept, so you want to use system.io.directory.getCurrentDirectory () to get the current path, you will encounter an unknown error in CF. It should be obtained using path.getdirectoryName (system.reflection.assembly (). GetName (). Codebase).

转载请注明原文地址:https://www.9cbs.com/read-119710.html

New Post(0)