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

Unable to publish app due to WebView conflict #692

Open
adopilot opened this issue Jun 14, 2024 · 7 comments
Open

Unable to publish app due to WebView conflict #692

adopilot opened this issue Jun 14, 2024 · 7 comments

Comments

@adopilot
Copy link

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

@adopilot adopilot changed the title Unable to publis app due to WebView conflict Unable to publish app due to WebView conflict Jun 14, 2024
@ravibpatel
Copy link
Owner

Did you try this?

@strich
Copy link

strich commented Jun 20, 2024

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
Copy link
Owner

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

@strich
Copy link

strich commented Jun 21, 2024

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Author

adopilot commented Jun 21, 2024

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

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

No branches or pull requests

3 participants