Mac 上 dotnet CLI 的默认模板目录在哪里?

cyp*_*ark 1 .net c# mono xamarin .net-core

当运行诸如 之类的模板安装命令时dotnet new --install MonoGame.Templates.CSharp,该模板文件实际上默认驻留在哪个目录中?我使用的是 macOS 10.15,很难在网上找到任何信息。任何帮助,将不胜感激!

cyp*_*ark 5

我找到了答案: /System/Volumes/Data/Users/[your_mac_username]/.templateengine/dotnetcli/v3.1.101/packages/

另外我还找到了VS 2019 for Mac的模板位置: /System/Volumes/Data/Users/[your_mac_username]/.templateengine/Visual Studio/8.0/packages

我通过搜索整个驱动​​器找到了它,希望它可以在将来节省某人的宝贵时间。