-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
.NET 5.0 application installed by ClickOnce may fail to start after being installed #44602
Comments
@richlander where do issues like these go? |
I have similar issue. My app is packed into Windows Installer (WiX toolset). After migration to .NET 5, installer fails to start an app. EventViewer entry:
[2020-11-13 update] Issue resolved. |
@NikolaMilosavljevic - do you know where this should go? |
It seems that this is not ClickOnce specific - I'd suggest dotnet/runtime to start. |
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
@worldofsites -- does this only happen when you deploy with ClickOnce? |
@richlander yes, only when deploy with ClickOnce.
Microsoft.Data.SqlClient:
|
Is the app published as framework-dependent of self-contained? Also, do you publish in terms of a runtime (like |
@richlander
|
Tagging subscribers to this area: @vitek-karas, @agocke Issue Details
|
The missing assembly is being installed by ClickOnce but, it is in the same folder as the application. As was pointed out already, it does not match the relative path that is in the dependencies manifest (*.deps.json). We have a Visual Studio issue tracking this issue: The GenerateBundle build issue when Self-Contained Single File is selected, is being tracked here: https://developercommunity2.visualstudio.com/t/The-GenerateBundle-task-failed-unexpec/1257409 |
I experimented with ClickOnce and .NET 5 this weekend. I can confirm @worldofsites said on Nov 12th, if native dependencies are involved, single file apps that are framework dependent is the only thing that works. I attempted to publish MSBuildStructuredLog as ClickOnce to GitHub pages. It is using Aavalonia libraries which depend on native libraries. I reproduced the issue by create a new project with |
Thanks @ctaggart for taking the time to provide us with this feedback. We're tracking this issue also as part of this Visual Studio issue: https://developercommunity2.visualstudio.com/t/A-NET-Core-31-or-NET-50-application-/1248873. |
@John-Hart https://developercommunity2.visualstudio.com/t/A-NET-Core-31-or-NET-50-application-/1248873 has been closed. Does it mean we can close this one as well? |
Closing, as this is a ClickOnce issue and the runtime is behaving as designed. |
Entry in the Windows Application Event Log after app start:
What in TestApp.deps.json:
Related dependencies:
The text was updated successfully, but these errors were encountered: