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

sakayevasf 0 Reputation points
2023-03-18T14:15:18.6733333+00:00

I am having 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
Developer technologies ASP.NET ASP.NET Core
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2023-03-18T17:28:55.8466667+00:00

    visual studio for Mac does not have a separate installer program like windows to add additional workloads. If you did not include asp.net core in the install, you will need reinstall vs 2022.

    https://learn.microsoft.com/en-us/visualstudio/mac/workloads?view=vsmac-2022

    https://learn.microsoft.com/en-us/visualstudio/mac/installation?view=vsmac-2022

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.