© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
17 replies
Cryptobax | ParallelNode

❔ Getting exe path of entry point

I do have a WinUI 3 project and I am unable to retrieve the exe path of my application. That's what I have tried. But I get the dll only.
string? target = Assembly.GetAssembly(typeof(App))?.GetName().CodeBase;
// returns the dll path instead of the exe
string? target = Assembly.GetAssembly(typeof(App))?.GetName().CodeBase;
// returns the dll path instead of the exe
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

❔ entry point in dll instead of application
C#CC# / help
3y ago
The entry point of the program is global code; ignoring 'Program.Main(string[])' entry point.
C#CC# / help
3y ago
MAUI Entry Point - MauiProgram.cs [Answered]
C#CC# / help
4y ago
❔ System.MissingMethodException: Entry point not found in assembly
C#CC# / help
3y ago