我已经用asdf-vim安装了.Net Core 3.1.300,并遵循csharp tutorial。当我跑步时:
dotnet new console -n BranchesAndLoops -o .
它确实占用大量内存。这是C#世界中的规范吗?还是将某些东西误配置为dotnet新手?
❯ dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 3.1.300
Commit: b2475c1295
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.15
OS Platform: Darwin
RID: osx.10.15-x64
Base Path: /Users/ogirginc/.asdf/installs/dotnet-core/3.1.300/sdk/3.1.300/
Host (useful for support):
Version: 3.1.4
Commit: 0c2e69caa6
.NET Core SDKs installed:
3.1.300 [/Users/ogirginc/.asdf/installs/dotnet-core/3.1.300/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.4 [/Users/ogirginc/.asdf/installs/dotnet-core/3.1.300/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.4 [/Users/ogirginc/.asdf/installs/dotnet-core/3.1.300/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
答案 0 :(得分:1)
即使我已经用asdf-vm安装了dotnet,后来又下载了Visual Studio for Mac和Visual Studio Code(安装了其他东西,我不知道它们是什么)来尝试它们,而不是去修改我的vimrc。
可能同时使用asdf-vm和Visual Studio for Mac引起了一些内部问题,这使dotnet陷入了挂起状态,并逐渐增加了内存泄漏。
卸载VS for Mac和VS代码后,高内存问题不再发生。