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

UpdateManager.RestartApp fails when EntryAssembly is a dll #1554

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jeremia
Copy link

@jeremia jeremia commented Oct 11, 2019

This resolves #1553

@GeertvanHorrik
Copy link
Contributor

Question: why not check if extension is .dll? If so, call Path.ChangeExtension to exe. That's how I solved the restarting of my .NET Core apps (that now are .dll entry assemblies). But if you have a good reason, I might have to change my method everywhere in my code :-)

@jeremia
Copy link
Author

jeremia commented Oct 13, 2020

Why check the extension and have an if/else instead of using a method that will work for both cases?
Keep It Simple and Stupid. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UpdateManager.RestartApp fails when EntryAssembly is a dll
3 participants