dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.71k stars 1.06k forks source link

After install 6.0 GA arm64 SDK on Mac OS Monterey(12.0.1) Parallels VM on M1 machine, use ` dotnet --info ` met error "Unhandled exception." #22978

Open lemon0213 opened 2 years ago

lemon0213 commented 2 years ago

REPRO MACHINE: MacOS Monterey(12.0.1) Parallels VM on M1 machine REPRO Configuration:

.NET Core SDK: 6.0.100

.NET Core Runtime: 6.0.0

INSTALL STEPS

  1. Install .NET 6.0 GA arm64 SDK from https://dotnet.microsoft.com/en-us/download/dotnet/6.0

REPRO STEPS After 6.0 GA arm64 SDK install completed, via Terminal using dotnet --info

ACTUAL Error as below: Unhandled exception. System.TypeInitializationException: The type initializer for 'Microsoft.DotNet.Cli.Utils.Reporter' threw an exception. image

Note: This issue only repro on Mac OS Monterey(12.0.1) Parallels VM on M1 machine, but it works properly when you install the SDK on a physical M1 machine.

EXPECTED image

dotnet-issue-labeler[bot] commented 2 years ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

molszews commented 2 years ago

same here under UTM