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 #1553

Open
jeremia opened this issue Oct 11, 2019 · 0 comments · May be fixed by #1554
Open

UpdateManager.RestartApp fails when EntryAssembly is a dll #1553

jeremia opened this issue Oct 11, 2019 · 0 comments · May be fixed by #1554

Comments

@jeremia
Copy link

jeremia commented Oct 11, 2019

We are using Squirrel.Windows in a WPF .NET Core 3 project.
It's working fine. We just had to add the Squirrel.dll and NuGet.Squirrel.dll manually to the project. The other nuget dependencies were added as normal nuget packages.

But when calling UpdateManager.Restart app it fails due to that Assembly.GetEntryAssembly() returns the dll for our WPF application, not our exe.

"Process.GetCurrentProcess().MainModule.FileName" works in our case and it is my understanding that it will always give the exe file of the main process, which is exactly what is wanted. See my pull request for this fix.

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 a pull request may close this issue.

1 participant