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

WinUI 3 Scaffold-DbContext error #30758

Closed
vsfeedback opened this issue Apr 25, 2023 · 2 comments
Closed

WinUI 3 Scaffold-DbContext error #30758

vsfeedback opened this issue Apr 25, 2023 · 2 comments
Labels
closed-no-further-action The issue is closed and no further action is planned. customer-reported

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


[severity:I'm unable to use this version]
Hello,

I want to scafffold-DbContext it works well for WPF, but there is a problem for WinUI 3 Blank App, Packaged and Template for WinUI 3.

Edition Windows 11 Pro
Version 22H2
Installed on ‎3/‎27/‎2023
OS build 22621.1555
Experience Windows Feature Experience Pack 1000.22640.1000.0

Visual Studio Professional 2022
17.5.3

How to reproduce an error:

  1. Create a new project Blank App, Packaged (WinUI 3 in Desktop) or Template for WinUi 3
  2. NuGet install:
    • Microsoft.EntityFrameworkCore.SqlServer 7.0.5
    • EntityFrameWorkCore.Tools 7.0.5
  3. Run Scaffold-DbContext in Package Manager Console
    Scaffold-DbContext -provider Microsoft.EntityFrameworkCore.SqlServer -connection "Data Source=...
Failed to load the dll from [C:\git\winUiSqlTest\App1\App1\bin\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\hostpolicy.dll], HRESULT: 0x800700C1
An error occurred while loading required library hostpolicy.dll from [C:\git\winUiSqlTest\App1\App1\bin\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\]

How to fix the problem?
Thank you in advance.


Original Comments

Feedback Bot on 4/20/2023, 09:36 AM:

(private comment, text removed)

marekp18 on 4/21/2023, 11:51 AM:

(private comment, text removed)


Original Solutions

(no solutions)

@ajcvickers ajcvickers transferred this issue from dotnet/ef6 Apr 25, 2023
@ajcvickers
Copy link
Member

/cc @bricelam

@bricelam
Copy link
Contributor

Do you have the 32-bit .NET runtime installed?

Or did you intend to run as 64-bit instead?

image

@ajcvickers ajcvickers added customer-reported closed-no-further-action The issue is closed and no further action is planned. labels May 3, 2023
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-no-further-action The issue is closed and no further action is planned. customer-reported
Projects
None yet
Development

No branches or pull requests

3 participants