Unable to publish app due to WebView conflict
Opened this issue · 9 comments
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
Did you try this?
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.
Is it possible to provide a test project, so I can reproduce and debug it on my end?
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.
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.
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
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
@ravibpatel any chance you are working on this?
@Akash-github-project I still not find why the conflict happens. Maybe binding redirect may help here? I personally didn't try it out.