From a1f1234042a6a24a193cb2b6e9dd6f00234de17f Mon Sep 17 00:00:00 2001 From: Emil Halvarsson Date: Mon, 10 Nov 2025 21:07:50 +0100 Subject: [PATCH] add support for running psedit in visual studio --- Properties/launchSettings.json | 16 ++++++++++++++++ psedit.csproj | 7 ++++--- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 Properties/launchSettings.json diff --git a/Properties/launchSettings.json b/Properties/launchSettings.json new file mode 100644 index 0000000..06d27f7 --- /dev/null +++ b/Properties/launchSettings.json @@ -0,0 +1,16 @@ +{ + "profiles": { + "pwsh": { + "commandName": "Executable", + "executablePath": "pwsh", + "commandLineArgs": "-NoExit -Command & { Import-Module .\\\\psedit.psd1; Show-PSEditor }", + "workingDirectory": "$(ProjectDir)bin\\$(Configuration)\\$(TargetFramework)\\publish" + }, + "powershell": { + "commandName": "Executable", + "executablePath": "powershell", + "commandLineArgs": "-NoExit -Command & { Import-Module .\\\\psedit.psd1; Show-PSEditor }", + "workingDirectory": "$(ProjectDir)bin\\$(Configuration)\\$(TargetFramework)\\publish" + } + } +} \ No newline at end of file diff --git a/psedit.csproj b/psedit.csproj index 22f537f..8fe0075 100644 --- a/psedit.csproj +++ b/psedit.csproj @@ -1,4 +1,4 @@ - + netstandard2.0 @@ -11,11 +11,12 @@ - Always - + + + \ No newline at end of file