---
title: "Discussion on \"Setting up SQL & Entity Framework Migrations on Visual Studio for M1 Mac\" | Hashnode"
description: "Discussion on \"Setting up SQL & Entity Framework Migrations on Visual Studio for M1 Mac\". Setting up Entity Framework migrations on both Intel & M1 based Visual Studio for Mac"
url: "https://hashnode.com/posts/ef-migrations-visual-studio-mac/60c5f7fa1679ed6f51a27dac"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Setting up SQL & Entity Framework Migrations on Visual Studio for M1 Mac](https://stackup.hashnode.dev/ef-migrations-visual-studio-mac?utm_source=hashnode&utm_medium=feed)

Setting up Entity Framework migrations on both Intel & M1 based Visual Studio for Mac

Jun 13, 2021 · 4 min read · stackup.hashnode.dev  
Read the article

-   [#visual-studio](https://hashnode.com/tag/visual-studio)
-   [#aspnet-core](https://hashnode.com/tag/aspnet-core)
-   [#migration](https://hashnode.com/tag/migration)
-   [#sql-server](https://hashnode.com/tag/sql-server)

## Written by

[Rajat Srivastava](https://hashnode.com/@stackupdev)

@stackupdev · Pune, India

  
[View profile](https://hashnode.com/@stackupdev)

Senior Engineer C#

## Responses 2

Markdown supported · ⌘↵ to post

[Usama Ahtsham](https://hashnode.com/@usaaht)

[Apr 27, 2023](https://hashnode.com/posts/ef-migrations-visual-studio-mac/60c5f7fa1679ed6f51a27dac/comment/644a9caaa6141289725407ba)

I face this what is the solution

(base) apple@192 PizzaHub % dotnet ef migrations add MyFirstMigrationNo project was found. Change the current working directory or use the --project option.

[Rajat Srivastava](https://hashnode.com/@stackupdev)

[Apr 27, 2023](https://hashnode.com/posts/ef-migrations-visual-studio-mac/60c5f7fa1679ed6f51a27dac/comment/644a9caaa6141289725407ba#reply-644aad99a7706c89a423f82e)

You might be running the command in the solution directory rather the project. CD into the project directory and then try executing the same command. Should ideally run.

[Nibha](https://hashnode.com/@inibha)

[Feb 1, 2022](https://hashnode.com/posts/ef-migrations-visual-studio-mac/60c5f7fa1679ed6f51a27dac/comment/61f91b8543e34d11816944f1)

Hi I found your article quite helpful while setting up sql Db in Mac M1 machine. But my EF Core migrations command are not working , I am getting following issue -: After running, dotnet ef migrations add DbInitializationWithSeed Build started... Build succeeded. It was not possible to find any compatible framework version The framework 'Microsoft.AspNetCore.App', version '3.1.0' (arm64) was not found.

-   The following frameworks were found: 6.0.1 at \[/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App\] You can resolve the problem by installing the specified framework and/or SDK. The specified framework can be found at:
-   [aka.ms/dotnet-core-applaunch](https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=3.1.0&arch=arm64&rid=osx.12-arm64) Do you have any idea how to resolve this issue on Mac ?
