79561840

Date: 2025-04-08 11:03:29
Score: 1.5
Natty:
Report link

You want to get the path of the executable at runtime, it would be like this:

string projectPath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);

After I ran it the result was this:

C:\\Users\\<user>\\source\\repos\\App7\\App7\\bin\\x64\\Debug\\net8.0-windows10.0.19041.0\\win-x64\\AppX

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Cassius