How to use visual studio 2022 package manager console on Mac

Janvier 6 Reputation points
2022-11-09T10:42:13.477+00:00

I am struggling with finding package manager console on Mac
whilst I need to add migration commands on C#.net
yet I would like possible way execute those commands

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,595 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,223 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. sweetnandha cse 10 Reputation points
    2023-04-07T14:05:33.3666667+00:00

    For visual studio/vs code in Mac OS. i have researched lot of documents but can't found anything. after i found one solution. Its working fine for me.

    open

    1. visual studio in Mac
    2. view --> terminal
    3. For more context. Run -->
       dotnet ef migrations add InitialCreate --context ApplicationDbContext
       dotnet ef database update -c ApplicationDbContext
    
    2 people found this answer helpful.

  2. Tianyu Sun-MSFT 27,106 Reputation points Microsoft Vendor
    2022-11-09T12:43:34.75+00:00

    Hi @Janvier ,

    Welcome to Microsoft Q&A forum.

    Visual Studio for Mac doesn’t include Package Manager Console. See this document: Console availability for more details.

    The Package Manager Console is built into the Package Manager for Visual Studio on Windows. Visual Studio Code and Visual Studio for Mac don’t include the console. Visual Studio for Mac has a UI for managing NuGet packages, and the equivalent console commands are available through the NuGet CLI. For more information, see Install and manage NuGet packages in Visual Studio for Mac.

    Besides, here's a similar thread: Support for Package Manager Console in Visual Studio for Mac, you can refer to this thread or follow up this thread. I would also suggest you submit a feature request ticket on our Developer Community.

    Best Regards,
    Tianyu

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.