dotnet CLI's default template directory on mac

When running template installing command like dotnet new --install MonoGame.Templates.CSharp, in which directory does this template files actually reside by default (macOS 10.15)?

My goal is to create a MonoGame project from dotnet CLI, bring it to VS 2019, and code on it. I know there is an issue with MonoGame templates and VS2019, and I am trying to find a workaround on VS2019 on mac.

I know this is not really a question for monogame, but it is hard to find any info online. Any help would be appreciated!

I found the answer:
/System/Volumes/Data/Users/[your_mac_username]/.templateengine/dotnetcli/v3.1.101/packages/

In addition, I also found VS 2019 for Mac’s template location too: /System/Volumes/Data/Users/[your_mac_username]/.templateengine/Visual Studio/8.0/packages

I found it by searching the entire drive, hopefully it could save someone’s precious time in the future.

2 Likes