question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change .templateengine folder path

See original GitHub issue

I would like to setup a dotnet sdk environment on a usb drive in a portable mode. The idea is to have no file/folder changes to the host file system. Currently the .templateengine folder is placed in the %USERPROFILE% path on windows. I’m sure in similar places on other platforms. #9853 in the dotnet/cli repo was opened to track this effort. @peterhuene mentioned that the DOTNET_CLI_HOME variable available in 2.1.4xx should keep things in a location of choice, e.g. a data/ folder on a usb drive.

Could this variable be used to also change where the .templateengine folder is kept?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

9reactions
natemcmastercommented, Nov 21, 2018

+1 for supporting DOTNET_CLI_HOME. NuGet and other things bundled in the CLI support this.

cc @livarcocc @peterhuene

2reactions
vlada-shubinacommented, Jul 28, 2021

@dotnet/templating-engine-maintainers let’s retriage this issue, imo it makes sense considering other parties did it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing the Thymeleaf Template Directory in Spring Boot
In this short tutorial, we will look at how we can change the template location. After we do that, we'll learn how to...
Read more >
Custom templates for dotnet new - .NET CLI
The mytemplate folder is an installable template package. Once the package is installed, the shortName can be used with the dotnet new command....
Read more >
Where does "dotnet new templatename" command stores ...
Found a similar question with an answer for macOS - Where is the dotnet CLI's default template directory on mac?
Read more >
Using the .Net Core Template Engine to Create Custom ...
To create a simple console application, start up the command line, change directory to a new empty folder (an important step, ...
Read more >
Make your own custom .NET Core templates - Craft Bakery
NET Core templates. Templates are located in %USERPROFILE%\.templateengine directory. Template Engine is open source and builds on .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found