Reputation: 1893
I'm adding code to a program created to be used on Windows CE. My current problem is that Application.StartupPath isn't recognized. What is the Equivalent line of code I need to use?
Upvotes: 3
Views: 3123
Reputation: 6694
You can retrieve it by
Path.GetDirectoryName (Assembly.GetExecutingAssembly ().GetName ().CodeBase);
Upvotes: 5