1

When running template installing command like dotnet new --install MonoGame.Templates.CSharp, in which directory does this template files actually reside by default? I am on macOS 10.15 and it is hard to find any info online. Any help would be appreciated!

cypark
  • 838
  • 6
  • 21
  • 2
    You might get some ideas from https://github.com/dotnet/sdk/blob/b1223209644d900702287faea8e9b71f95ec49f8/src/Cli/dotnet/commands/dotnet-new/NewCommandShim.cs#L87 But surely there is no documentation around that. – Lex Li Feb 27 '20 at 20:51
  • @LexLi it looks promising. will take a look. thank you!! – cypark Feb 27 '20 at 20:57

1 Answers1

5

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.

cypark
  • 838
  • 6
  • 21
  • 1
    You can mark it which will help more people with same problem. – nevermore Feb 28 '20 at 07:50
  • 1
    So I found the location `/System/Volumes/Data/Users/[your_mac_username]/.templateengine/Visual Studio/8.0/packages` but it's full of `.nupkg` files. Guess I have to figure out how to "open" these? EDIT: ROFL! I didn't know they were compressed files. Learning something new every day! – RoLYroLLs Dec 09 '20 at 04:20
  • Yup, totally agree that we always have a lot of things to learn ;) For anyone who might be curious, `.nupkg` files are `zip` files, AFAIK. I never had a chance to extract them though. – cypark Dec 09 '20 at 09:31