Skip to content

Commit 43b79fc

Browse files
author
dotchris90
committed
feat : Add T4 engine for Code - generation.
1 parent f4e6e1c commit 43b79fc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

GenerateCode.ps1

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# first check if T4 engine is installed
2+
if ( -not ( Get-Command t4 -errorAction SilentlyContinue))
3+
{
4+
Write-Host "T4 tool was not found - will be installed."
5+
dotnet tool install -g dotnet-t4
6+
Write-Host "T4 has been installed."
7+
}
8+
else
9+
{
10+
Write-Host "T4 tool is already installed."
11+
}
12+
13+
Write-Host ("location of T4 tool is : " + (Get-Command t4).Path)

0 commit comments

Comments
 (0)