A community member has associated this post with a similar question:
Cannot create new ASP.NET Core Web App on Visual Studio (Mac M1)

Only moderators can edit this content.

Cannot create new ASP.NET Core Web App on Visual Studio (Mac M1)

sakayevasf 0 Reputation points
2023-03-17T19:14:23.6633333+00:00

Hi!

I am having BIG issues with my visual studio. Using updated VS 2022.

I want to start a new web project (using ASP.NET Core Web API template), but I get only Empty Solution option in the File menu. What could be the problem?

Here's information on my dotnet versioning:

dotnet --info

ПАКЕТ SDK ДЛЯ .NET:
 Version:   7.0.202
 Commit:    6c74320bc3

Среда выполнения:
 OS Name:     Mac OS X
 OS Version:  12.5
 OS Platform: Darwin
 RID:         osx.12-arm64
 Base Path:   /usr/local/share/dotnet/sdk/7.0.202/

Host:
  Version:      7.0.4
  Architecture: arm64
  Commit:       0a396acafe

.NET SDKs installed:
  6.0.407 [/usr/local/share/dotnet/sdk]
  7.0.202 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.15 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.15 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  x64   [/usr/local/share/dotnet/x64]
    registered at [/etc/dotnet/install_location_x64]

Environment variables:
  Not set

global.json file:
  Not found

I expect to see the standard file menu, but I get the considerably limited menu. Please if you know how to fix it, let me know.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 55,686 Reputation points
    2023-03-17T20:01:56.8466667+00:00

    with vs2022

    file -> new project:  
        web & console:  
             app:  
                   asp.net core  
                         api
    
    

    or from the shell:

    % mkdir myproject  
    % cd myproject   
    % dotnet new webapi
    
    0 comments No comments