Skip to content

Commit fbd5dbc

Browse files
Enable F5 debugging of PSReadLine in Visual Studio (#1319)
1 parent 78635c0 commit fbd5dbc

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

PSReadLine/PSReadLine.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
<PackageReference Include="Microsoft.CSharp" version="4.5.0-*" />
2020
</ItemGroup>
2121
<ItemGroup>
22-
<None Include="PSReadLine.psd1" />
23-
<None Include="PSReadLine.psm1" />
22+
<None Include="PSReadLine.psd1" CopyToOutputDirectory="PreserveNewest" />
23+
<None Include="PSReadLine.psm1" CopyToOutputDirectory="PreserveNewest" />
24+
<None Include="PSReadLine.format.ps1xml" CopyToOutputDirectory="PreserveNewest" />
2425
<None Include="SamplePSReadLineProfile.ps1" />
2526
<None Include="Changes.txt" />
2627
<None Include="License.txt" />
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"profiles": {
3+
"PSReadLine-net461": {
4+
"commandName": "Executable",
5+
"executablePath": "powershell",
6+
"commandLineArgs": "-NoProfile -NonInteractive -NoExit -Command Import-Module .\\PSReadLine.psd1"
7+
},
8+
"PSReadLine-netcore": {
9+
"commandName": "Executable",
10+
"executablePath": "pwsh",
11+
"commandLineArgs": "-NoProfile -NonInteractive -NoExit -Command Import-Module .\\PSReadLine.psd1"
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)