C# create temp console project powershell script

Date: 2023-12-11

new-temp-project.ps1

$projectname=Get-Date -Format "yyyy-MM-dd-HH-mm"
mkdir $projectname
cd $projectname
git init

dotnet new sln -n Solution
dotnet new gitignore
dotnet new globaljson
dotnet new nugetconfig

dotnet new console -n ConsoleApp --use-program-main
dotnet sln add ConsoleApp
code .
81840cookie-checkC# create temp console project powershell script