Skip to content

Unable to install as global tool on osx-arm64 architecture. #117

@NatElkins

Description

@NatElkins

Describe the bug
Wanted to play with F# and Fornax, haven't touched it in a few years. I installed the .NET SDK via brew, and then installed Fornax as a global tool. Tried it run it, but it complains about not being able to find the .NET location.

To Reproduce

  1. Install dotnet-sdk cask via brew on M1 Mac.
  2. dotnet tool install fornax -g.
  3. fornax

Expected behaviour
Fornax gets invoked properly.

Screenshots
The following is produced:

You must install .NET to run this application.

App: /Users/nat/.dotnet/tools/fornax
Architecture: x64
App host version: 6.0.8
.NET location: Not found

Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=osx.12-x64&apphost_version=6.0.8

Environment (please complete the following information):

➜  fornax_test dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.400
 Commit:    7771abd614

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

global.json file:
  Not found

Host:
  Version:      6.0.8
  Architecture: arm64
  Commit:       55fb7ef977

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

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

Download .NET:
  https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs:
  https://aka.ms/dotnet/runtimes-sdk-info

Additional context
From the F# Slack:
image
dotnet/sdk#26417

image

Sounds like we might be able to get around it by targeting .NET 6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions