所以,我使用 c#,但有很长一段时间我没有安装 .Net,直到我开始遇到奇怪的问题和缺少库,所以我决定安装它。我试图从 VS 安装它,但找不到下载按钮,所以我从互联网上安装了它。但是当我转到 About Visual Studios > Show details 时,它说:
=== Visual Studio Community 2019 for Mac ===
Version 8.10.4 (build 11)
Installation UUID: 915e13f6-1f3f-4ad4-95e0-5c3251d16592
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)
Package version:
=== Mono Framework MDK ===
Runtime:
Mono 6.12.0.140 (2020-02/51d876a041e) (64-bit)
Package version: 612000140
=== Roslyn (Language Service) ===
3.10.0-4.21269.26+029847714208ebe49668667c60ea5b0a294e0fcb
=== NuGet ===
Version: 5.9.0.7134
=== .NET Core SDK ===
SDK: Not installed
MSBuild SDKs: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Sdks
=== .NET Core Runtime ===
Runtime: Not installed
=== .NET Core 3.1 SDK ===
SDK: Not installed
=== Xamarin.Profiler ===
'/Applications/Xamarin Profiler.app' not found
=== Updater ===
Version: 11
=== Apple Developer Tools ===
A valid Xcode installation was not found at the configured location: '/Library/Developer/CommandLineTools'
=== Xamarin.Mac ===
Xamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version.
=== Xamarin Designer ===
Version: 16.10.0.119
Hash:
Branch: remotes/origin/d16-10
Build date: 2019-06-02 19:41:34 UTC
=== Xamarin.iOS ===
Xamarin.iOS not installed.
Can't find mtouch or the Version file at /Library/Frameworks/Xamarin.iOS.framework/Versions/Current.
=== Xamarin.Android ===
Not Installed
=== Microsoft OpenJDK for Mobile ===
Java SDK: Not Found
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Android SDK Manager ===
Version: 16.10.0.12
Hash:
Branch: remotes/origin/d16-10
Build date: 2019-06-01 18:26:34 UTC
=== Android Device Manager ===
Version: 16.10.0.14
Hash:
Branch: remotes/origin/d16-10
Build date: 2019-06-01 18:26:52 UTC
=== Build Information ===
Release ID:
Git revision:
Build date: 2021-06-24 12:46:09-04
Build branch: release-8.10
=== Operating System ===
Mac OS X 10.16.0
Darwin 20.3.0 Darwin Kernel Version 20.3.0
Thu Jan 21 00:07:06 PST 2021
root:
我已经阅读了无数文章,但我无法解决这个问题。我已经重新安装了 .Net 很多次,但还是没有。为什么会这样?
PS:我在 Mac 上使用 VS。我正在尝试安装 .Net 5.0 (5.0.7) 我隐藏了任何潜在的敏感信息。