Build to bin
dotnet build
Then just import the resulting dll and run it for testing purposes
Import-Module ./bin/Debug/netstandard2.0/powershell.dll # Will expose Get-Sample command
Get-Sample 2
Build to bin
dotnet build
Then just import the resulting dll and run it for testing purposes
Import-Module ./bin/Debug/netstandard2.0/powershell.dll # Will expose Get-Sample command
Get-Sample 2