Does Dotnet Net 6 Arm64 work on M1 Silicon ?

Ozzy Ozmen Celik 21 Reputation points
2022-05-21T23:29:15.087+00:00

When I tried using Scaffold Dbcontext, it show there is no such a word as " scaffold dbcontext". Then I uninstalled Net 6 and installed Arm64 version on m y M1 silicon. Guess what ? It didn't work because when checked botnet version, it didn't show me the Net 6 and I installed intel x64 version again which one comes with Visual Studio for Mac 2022 Prev. So Is anybody know that when arm64 Net6 will support %100 ? Because we can't use "Scaffold Dbcontext" to migration our Datas to project.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,148 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,118 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 55,366 Reputation points
    2022-05-22T20:44:49.363+00:00

    works fine on my m1 using dotnet 6 and azure sqlserver edge in a docker container.

    dotnet ef dbcontext scaffold "Server=localhost;Database=pubs;user=sa;Password=xxxxx;" "Microsoft.EntityFrameworkCore.SqlServer" -o Model

    note: I use the z shell

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 55,366 Reputation points
    2022-05-22T15:49:55.647+00:00

    So did you install the EF cli tools?

    dotnet tool install --global dotnet-ef

    See

    https://learn.microsoft.com/en-us/ef/core/cli/dotnet

    0 comments No comments

  2. Ozzy Ozmen Celik 21 Reputation points
    2022-05-22T17:21:56.707+00:00

    Yes I already installed but still not working. Also I installed nuggets ( ef core sql - design - tools ).
    Here is my Scaffold DbContext = Scaffold-DbContext "Server=sserveraddress;Database=dbname;User=username;Password=password;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Data -Context MicroServiceDBContext

    Could u try it on ur computer and let me know if its working or not on ur side. And dont forget that I have this problem only with M1 cpu not intel.

    0 comments No comments

  3. Ozzy Ozmen Celik 21 Reputation points
    2022-05-22T20:59:37.457+00:00

    Thank you so much. It really worked for me..

    0 comments No comments