Using Windows developer CLI tools outside of Visual Studio is way more of a pain than it needs to be. Here's how to set up the VS Developer Command Prompt in VS Code's integrated terminal.
- Visual Studio with any workloads you need
- VS Code
using System.Threading.Channels; | |
using CliWrap; | |
using Spectre.Console; | |
string command = AnsiConsole.Ask<string>("[bold blue]Command to run[/]"); | |
var channel = Channel.CreateUnbounded<string>(); | |
var processArgumentsTask = Task.Run(async () => { | |
while (true) { |
SELECT version(); | |
SELECT ns.nspname, t.oid, t.typname, t.typtype, t.typnotnull, t.elemtypoid | |
FROM ( | |
-- Arrays have typtype=b - this subquery identifies them by their typreceive and converts their typtype to a | |
-- We first do this for the type (innerest-most subquery), and then for its element type | |
-- This also returns the array element, range subtype and domain base type as elemtypoid | |
SELECT | |
typ.oid, typ.typnamespace, typ.typname, typ.typtype, typ.typrelid, typ.typnotnull, typ.relkind, | |
elemtyp.oid AS elemtypoid, elemtyp.typname AS elemtypname, elemcls.relkind AS elemrelkind, |
using CliWrap; | |
using Spectre.Console; | |
using System.Diagnostics; | |
namespace SystemdTemplate; | |
public static class Systemd | |
{ | |
/// <summary> | |
/// Attempt to install the current process as a systemd service |
Using Windows developer CLI tools outside of Visual Studio is way more of a pain than it needs to be. Here's how to set up the VS Developer Command Prompt in VS Code's integrated terminal.