ravibpatel / AutoUpdater.NET

AutoUpdater.NET is a class library that allows .NET developers to easily add auto update functionality to their classic desktop application projects.
MIT License
3.01k stars 764 forks source link

Unable to publish app due to WebView conflict #692

Open adopilot opened 2 months ago

adopilot commented 2 months ago

I am trying to implement autoupdater in my .net8 maui Blazor hybrid app. My app already have refences to Microsoft.AspNetCore.Components.WebView.Maui by def package When I add package Autoupdater.NET.Official it install also WebView component.

After that when I try to publish my app I get error Found multiple publish output files with the same relative path: \net8.0-windows10.0.19041.0\win10-x64\MsixContent\Microsoft.Web.WebView2.Core.dll, obj\Release\net8.0-windows10.0.19041.0\win10-x64\R2R\Microsoft.Web.WebView2.Core.dll.

How I can use autoupdater whith already installed WebView from Microsoft.AspNetCore.Components.WebView.Maui Thanks in advanced

ravibpatel commented 2 months ago

Did you try this?

strich commented 2 months ago

I tried the solution on SO and whilst it did publish, it has caused the app to fail to load. In this case it is a MAUI Blazor project. I can't tell why but it feels like maybe this webview is now overriding config files the app uses to launch properly.

ravibpatel commented 2 months ago

Is it possible to provide a test project, so I can reproduce and debug it on my end?

strich commented 2 months ago

Is it possible to provide a test project, so I can reproduce and debug it on my end?

Sorry mate but I'm afraid not. I've had to move on to another solution now.

I don't know what Webview is, but it appears at first glance of the features of this framework to be not necessary? It may be worth considering if it can be removed.

ravibpatel commented 2 months ago

WebView is used to show changelog from the provided changelog URL, so it is necessary for many devs. Currently, It provides an option to not show the WebView by omitting the changelog URL. To completely remove it, you have to recompile the DLL and use your own version. It was introduced on v1.7.1 so you can try v1.7.0 to see if you have the same issue.

adopilot commented 2 months ago

Did you try this?

I did before opening issue, but same behovar as strich described. We were in hurry to ship project, so we switched to other library. Thanks for effort sorry for late answer

adopilot commented 2 months ago

Is it possible to provide a test project, so I can reproduce and debug it on my end?

My solution is open source on https://github.com/adopilot/ESIRprevoditelj I am trying to publish FiskalniPrevoditelj project