Skip to content

Getting started does not work on dotnet 6 macOS M1 #48

@sshquack

Description

@sshquack

Thanks for this fantastic project! I'm trying out Craftsman for the first time following https://wrapt.dev/docs/installation The CLI installs successfully but errors out when invoked.

Steps to reproduce

❯ dotnet tool install -g craftsman
You can invoke the tool using the following command: craftsman
Tool 'craftsman' (version '0.12.2') was successfully installed.

❯ craftsman
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '5.0.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:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=5.0.0&arch=arm64&rid=osx.12-arm64

❯ echo $?
150

❯ craftsman list
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '5.0.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:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=5.0.0&arch=arm64&rid=osx.12-arm64

❯ dotnet tool update -g craftsman
Tool 'craftsman' was reinstalled with the latest stable version (version '0.12.2').

Further technical details

Environment info

❯ dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.101
 Commit:    ef49f6213a

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  12.1
 OS Platform: Darwin
 RID:         osx.12-arm64
 Base Path:   /usr/local/share/dotnet/sdk/6.0.101/

Host (useful for support):
  Version: 6.0.1
  Commit:  3a25a7f1cc

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

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

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

Dependencies are working as expected:

❯ dotnet tool list --global
Package Id      Version      Commands
--------------------------------------
craftsman       0.12.2       craftsman
dotnet-ef       6.0.1        dotnet-ef

~/Downloads
❯ dotnet ef --version
Entity Framework Core .NET Command-line Tools
6.0.1

~/Downloads
❯ docker --version
Docker version 20.10.11, build dea9396

Dotnet 6 is the only version with native arm64 support for M1 mac. So i do not have dotnet 5 installed.
Screenshot 000008@2x

I created a small web API template with dotnet 6 to verify that it successfully works as expected. How do I get past this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions