Scripts/dotNet.ps1
choco install dotnet-7.0-sdk dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org dotnet new webapp -n dotNetTest --framework net7.0 dotnet run --urls=https://localhost:5001/ dotnet watch # PS Binary module sml git $module = 'PsBinaryTest' gh repo create $module --private --description "" git clone https://github.com/MajorGlory86/PsBinaryTest Set-Location .\PsBinaryTest\ dotnet new gitignore New-Item $module.psd1 choco install dotnetcore-sdk New-Item -Path 'src' -Type Directory New-Item -Path 'Output' -Type Directory New-Item -Path 'Tests' -Type Directory New-Item -Path $module -Type Directory Set-Location 'src' dotnet new classlib --name $module Move-Item -Path .\$module\* -Destination .\ Remove-Item $module -Recurse dotnet --version dotnet new globaljson --sdk-version 3.1.426 dotnet add package PowerShellStandard.Library # dotnet add package Microsoft.PowerShell.Native Set-Location .\src\ dotnet build Import-Module .\bin\Debug\netstandard2.0\$module.dll Get-Command -Module $module Resolve-MyCmdlet -InputObject lala Resolve-MyCmdlet lala |