How to change the output folder for migrations with asp.net Core?

dotnet ef migrations add Initial –context EsportshubApi.Models.ApplicationDbContext -o YourFolderPath dotnet ef migrations add Adds a new migration. Arguments: Argument Description <NAME> The name of the migration. Options: Option Short Description –output-dir <PATH> -o The directory used to output the files. Paths are relative to the target project directory. Defaults to “Migrations”. –namespace <NAMESPACE> -n The … Read more

git log output encoding issues on Windows 10 CLI terminal

Okay, I experimented a bit and found out that Windows Git commands actually need UNIX variables like LC_ALL in order to display Polish (or other UTF-8 characters) correctly. Just try this command: set LC_ALL=C.UTF-8 Then enjoy the result. Here is what happened on my console (font “Consolas”, no chcp necessary): Update: Well, in order for … Read more

How to get tf.exe (TFS command line client)?

You need to install Team Explorer, it’s best to install the version of Team Explorer that matches the version of TFS you are using e.g. if you’re using TFS 2010 then install Team Explorer 2010. 2012 version http://www.microsoft.com/en-gb/download/details.aspx?id=30656 2013 version http://www.microsoft.com/en-us/download/details.aspx?id=40776 2019 version https://visualstudio.microsoft.com/downloads/#visual-studio-team-explorer-2019 You also might be interested in the TFS power tools. They … Read more

How can I split my Click commands, each with a set of sub-commands, into multiple files?

The downside of using CommandCollection for this is that it merges your commands and works only with command groups. The imho better alternative is to use add_command to achieve the same result. I have a project with the following tree: cli/ ├── __init__.py ├── cli.py ├── group1 │   ├── __init__.py │   ├── commands.py └── group2 … Read more