Open msschl opened 1 year ago
Tagging subscribers to this area: @davoudeshtehari, @david-engel, @jrahnama See info in area-owners.md if you want to be subscribed.
Author: | msschl |
---|---|
Assignees: | - |
Labels: | `area-System.Data.SqlClient`, `untriaged`, `needs-area-label` |
Milestone: | - |
Did this work in a previous version of .NET? Can you provide a sample project?
Here is a sample project. https://github.com/msschl/bug_maui_efcore_92676
It just is a plain new .net maui blazor hybrid project with ef core 8.0 added. It is able to build and run. But publishing with otnet publish -f net8.0-windows10.0.19041.0 -p:WindowsPackageType=None MauiApp1\MauiApp1.csproj
will result in the error as described in this issue.
Also still not working in the new net 8.0 release with maui 8.0.3
Description
Publishing a dotnet maui app with a reference to
Microsoft.Data.SqlClient
version 5.1.1 either throughMiicrosoft.EntityFrameworkCore.SqlServer
or theMicrosoft.Data.SqlClient
package directly causes an error for Microsoft.Web. WebView2.Core.dll. NETSDK1152Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
8.0.0-rc.1.9171
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
Downgrading to a version that references
Microsoft.Data.SqlClient
version 4.1.1 fixes the issue. I.e., usingMicrosoft.EntityFrameworkCore.SqlServer
version 6.0.22Relevant log output