Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet run on macOS UX -- x64 emulation #20584

Closed
richlander opened this issue Sep 3, 2021 · 2 comments
Closed

dotnet run on macOS UX -- x64 emulation #20584

richlander opened this issue Sep 3, 2021 · 2 comments
Assignees
Labels
Area-CLI untriaged Request triage from a team member

Comments

@richlander
Copy link
Member

dotnet run on macOS UX

Here's the current UX on macOS with the new x64 emulation capabilities. The installation is current (and totally) manual but the CLI experience works nicely for dotnet run.

App

rich@MacBook-Air-M1-2020 app % cat app.csproj 
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net6.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

</Project>
rich@MacBook-Air-M1-2020 app % cat Program.cs 
using System.Runtime.InteropServices;

Console.WriteLine($"Hello, {RuntimeInformation.FrameworkDescription} on {RuntimeInformation.OSArchitecture}!");
rich@MacBook-Air-M1-2020 app % 

Dev UX

rich@MacBook-Air-M1-2020 app % dotnet run
Hello, .NET 6.0.0-rc.2.21452.13 on Arm64!
rich@MacBook-Air-M1-2020 app % dotnet run -a x64
Hello, .NET 6.0.0-rc.2.21452.13 on X64!

Magic

rich@MacBook-Air-M1-2020 ~ % cat /etc/dotnet/install_location 
/usr/local/share/dotnet/x64
arm64=/usr/local/share/dotnet
x64=/usr/local/share/dotnet/x64

More magic

rich@MacBook-Air-M1-2020 dotnet % pwd
/usr/local/share/dotnet
rich@MacBook-Air-M1-2020 dotnet % ls       
LICENSE.txt		packs			templates
ThirdPartyNotices.txt	sdk			x64
dotnet			sdk-manifests
host			shared
rich@MacBook-Air-M1-2020 dotnet % ls x64
LICENSE.txt		host			sdk-manifests
ThirdPartyNotices.txt	packs			shared
dotnet			sdk			templates
rich@MacBook-Air-M1-2020 dotnet % find . | grep libcoreclr
./x64/shared/Microsoft.NETCore.App/6.0.0-rc.2.21423.14/libcoreclr.dylib
./x64/shared/Microsoft.NETCore.App/6.0.0-rc.2.21452.13/libcoreclr.dylib
./shared/Microsoft.NETCore.App/6.0.0-rc.2.21452.13/libcoreclr.dylib
./shared/Microsoft.NETCore.App/6.0.0-rc.2.21423.6/libcoreclr.dylib
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-CLI untriaged Request triage from a team member labels Sep 3, 2021
@richlander
Copy link
Member Author

Feel free to close this. There is no issue. Just sharing where we are at and what the magic is that folks need to make scenarios work.

@richlander
Copy link
Member Author

This issue is no longer relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CLI untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

2 participants