I have created appx for C# Desktop application using MakeAppx tool. During runtime, when appx is launched, I want to check this is running as appx and not as console application. Is there a simple runtime check one can do in C# to determine if you are running as a appx (which is packaged using makeappx tool) and not as console application? .
Asked
Active
Viewed 512 times
1 Answers
0
Duplicate question? True, the one from the link is for C++, but a similar call should be available in C# too.
There is also this option present on the MSDN forums.

Bogdan Mitrache
- 10,536
- 19
- 34
-
exactly but I am not able to get same call in C# to have current package full name.GetCurrentPackageFullName function is available in C++ only. – Ankush Butole Aug 27 '17 at 17:55