Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Application.ExecutablePath returns dll instead of exe (#2801) #2838

Closed

Commits on Feb 11, 2020

  1. fix: Application.ExecutablePath returns dll instead of exe (dotnet#…

    …2801)
    
    In .NET artifacts are DLLs even for executable projects. With some automagic
    they get bundled into executables.
    However `Assembly.GetEntryAssembly()` always returns the dll instead of the exe.
    
    Following the guidance from the Runtime team retrieve the path to the
    executable via `GetModuleFileNameW` call.
    
    Resolves dotnet#1143
    
    (cherry picked from commit 2af3af9)
    RussKie committed Feb 11, 2020
    Configuration menu
    Copy the full SHA
    abd221b View commit details
    Browse the repository at this point in the history