我使用C# .net10 + Avalonia 開發 WINDOWS x32 我想要在軟體被呼叫/啟動時 抓取 EXE 所在完整路徑
我使用C# .net10 + Avalonia 開發 WINDOWS x32 我想要在軟體被呼叫/啟動時 抓取 EXE 所在完整路徑
資料來源:https://www.meta.ai/share/c/CZc1jMBnJh
https://grok.com/share/bGVnYWN5LWNvcHk_638b638c-94f5-4856-967b-19b0cfc8e559
https://www.perplexity.ai/search/b35d3adb-9b27-45db-a256-2bbad5aa1649
https://share.gemini.google/MK0D597WdcD1
https://chatgpt.com/share/6aa2034a-a108-83ee-82ed-418169e62bbe
01.所以 AppDomain.CurrentDomain.BaseDirectory 抓到路徑 會因為被呼叫而受到影響嗎 ~ 不會
02.AppDomain.CurrentDomain.BaseDirectory 和 AppContext.BaseDirectory 兩者差異 ~ 後者簡潔/效能好