-
Notifications
You must be signed in to change notification settings - Fork 291
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
Can't Use In WinUi 3 #2270
Comments
You didn't read carefully. I said create with in "Template studio For Winui". not only blank template of VS. |
I installed that extension and used the bank template that it provides in a new project. As you said. |
nobody responds? |
I'll come back to you when i've had chance to look. |
This is a duplicate of microsoft/microsoft-ui-xaml#5689 |
@aliajboy can you try the workaround suggested in the microsoft/microsoft-ui-xaml#5689 thread and comment if this is a potential related issue? |
@kf-gonzalez2 I tried the workaround, It didn't fix this issue. |
@aliajboy, from the error shown in your video above, you are hitting microsoft/microsoft-ui-xaml#5689. That issue has been fixed in WinAppSDK 1.6 Experimental 2, released yesterday - please give this a try, I expect it will resolve your issue. More context: Microsoft.Data.SqlClient references Microsoft.Identity.Client (>= 4.60.3), which references Microsoft.Web.WebView2 (>= 1.0.864.35). This leads to Issue 5689 since there are multiple definitions of Microsoft.Web.WebView2 types - one embedded into WinAppSDK, the other a transitive reference to standalone Microsoft.Web.WebView2 package. (In 1.6 Expereimental 2, we refactored WinAppSDK to consume Microsoft.Web.WebView2 as a nuget reference and got rid of the embedding.) |
@DmitriyKomin I tried to install and work with v1.6 exp 2 but couldn't find out how to install and use. I will wait for stable release, or you can try it yourself and share the video (if it's fixed). |
Closing as it is an external issue |
Describe the bug
I was Stuck with an error of "found multiple publish output files" and after about 2 hours I found out that this nuget package has something wrong with it in WinUi 3. I tested "System.Data.SqlClient" and It worked Fine. but "Microsoft.Data.SqlClient" won't work. Both of them are at latest versions.
I tested everything and found that this particular nuget package is the source of my problems in WinUI 3. It works on anything else for example ASP.Net Core, Blazor, WPF, WinForm etc.
I didn't test it in MAUI.
To reproduce
It's Simple. Just make a WinUi 3 App with "Template Studio For WinUI 3" and add this nuget package. try to open the app.
Further technical details
Microsoft.Data.SqlClient version: 5.1.2
.NET target: .Net 7
SQL Server version: SQL Server 2022
Operating system: Latest Windows 11
Latest Visual Studio as of today
The text was updated successfully, but these errors were encountered: