Skip to content
This repository was archived by the owner on Jun 24, 2026. It is now read-only.

Commit 70d7c1d

Browse files
Replace .sln with .slnx; drop IDE-template scaffolding
The tracked GraphicalTools.sln carried stale ProjectReferences to local Terminal.Gui sources, breaking CI's `dotnet test` (which was implicitly resolving the solution). Switch to the modern .slnx format and track it directly so the solution is reviewable and small. - Replace GraphicalTools.sln with GraphicalTools.slnx (5-line XML; lists the 3 real projects, no dead Terminal.Gui ProjectReferences) - Stop ignoring .slnx and .vscode/; track them - Remove tools/initDevEnvironment.ps1 and tools/ide/ — no longer needed; .slnx is small enough to track and VS Code workspace files are now the supported way to share dev config - Add .vscode/{launch,tasks,extensions}.json: * launch.json: single coreclr profile with a pickString input for selecting one of the OCGV / Show-ObjectTree sample commands * tasks.json: build (Invoke-Build), test (zero-arg dotnet test auto-resolves the .slnx), clean * extensions.json: recommends C# Dev Kit + PowerShell Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 724affc commit 70d7c1d

9 files changed

Lines changed: 112 additions & 240 deletions

File tree

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ bin/
44
obj/
55
publish/
66
*.sln
7-
*.slnx
87

98
# IDE support (keep locally, don't track)
109
/.vs/
11-
/.vscode/
1210
*.user
1311
*.suo
1412
*.sln.DotSettings

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"ms-dotnettools.csdevkit",
4+
"ms-dotnettools.csharp",
5+
"ms-vscode.powershell"
6+
]
7+
}

.vscode/launch.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
// Single debug profile that prompts for a sample command at launch.
3+
// Add new scenarios by appending an option to the "sampleCommand" input below.
4+
"version": "0.2.0",
5+
"inputs": [
6+
{
7+
"id": "sampleCommand",
8+
"type": "pickString",
9+
"description": "Sample command to run after importing the module",
10+
"default": "Get-Process | Out-ConsoleGridView -Debug",
11+
"options": [
12+
"Get-Process | Out-ConsoleGridView -Debug",
13+
"Get-Process | Select-Object ProcessName, Id, CPU | Out-ConsoleGridView -Debug -Filter com",
14+
"Get-Process | Out-ConsoleGridView -MinUi",
15+
"Get-Process | Select-Object ProcessName, Id, Handles, NPM, PM, WS, CPU | Out-ConsoleGridView",
16+
"Get-ChildItem | Out-ConsoleGridView -OutputMode Single",
17+
"Get-Process | Show-ObjectTree"
18+
]
19+
}
20+
],
21+
"configurations": [
22+
{
23+
"name": "ConsoleGuiTools",
24+
"type": "coreclr",
25+
"request": "launch",
26+
"preLaunchTask": "build",
27+
"program": "pwsh",
28+
"args": [
29+
"-NoProfile",
30+
"-NoLogo",
31+
"-NoExit",
32+
"-Command",
33+
"Import-Module ${workspaceFolder}/module/Microsoft.PowerShell.ConsoleGuiTools.psd1; ${input:sampleCommand}"
34+
],
35+
"cwd": "${workspaceFolder}",
36+
"console": "integratedTerminal",
37+
"stopAtEntry": false
38+
}
39+
]
40+
}

.vscode/tasks.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build",
6+
"detail": "Build module via Invoke-Build (copies to ./module/)",
7+
"type": "process",
8+
"command": "pwsh",
9+
"args": [
10+
"-NoProfile",
11+
"-Command",
12+
"Invoke-Build Build"
13+
],
14+
"options": {
15+
"cwd": "${workspaceFolder}"
16+
},
17+
"group": {
18+
"kind": "build",
19+
"isDefault": true
20+
},
21+
"presentation": {
22+
"reveal": "silent",
23+
"panel": "shared",
24+
"clear": true
25+
},
26+
"problemMatcher": "$msCompile"
27+
},
28+
{
29+
"label": "test",
30+
"detail": "Run xunit tests via dotnet test (resolves GraphicalTools.slnx)",
31+
"type": "process",
32+
"command": "dotnet",
33+
"args": [
34+
"test"
35+
],
36+
"options": {
37+
"cwd": "${workspaceFolder}"
38+
},
39+
"group": {
40+
"kind": "test",
41+
"isDefault": true
42+
},
43+
"problemMatcher": "$msCompile"
44+
},
45+
{
46+
"label": "clean",
47+
"type": "process",
48+
"command": "pwsh",
49+
"args": [
50+
"-NoProfile",
51+
"-Command",
52+
"Invoke-Build Clean"
53+
],
54+
"options": {
55+
"cwd": "${workspaceFolder}"
56+
},
57+
"problemMatcher": []
58+
}
59+
]
60+
}

GraphicalTools.sln

Lines changed: 0 additions & 113 deletions
This file was deleted.

GraphicalTools.slnx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Solution>
2+
<Project Path="src/Microsoft.PowerShell.ConsoleGuiTools/Microsoft.PowerShell.ConsoleGuiTools.csproj" />
3+
<Project Path="src/Microsoft.PowerShell.OutGridView.Models/Microsoft.PowerShell.OutGridView.Models.csproj" />
4+
<Project Path="test/Microsoft.PowerShell.ConsoleGuiTools.Tests/Microsoft.PowerShell.ConsoleGuiTools.Tests.csproj" />
5+
</Solution>

tools/ide/.vscode/settings.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

tools/ide/launchSettings.json

Lines changed: 0 additions & 40 deletions
This file was deleted.

tools/initDevEnvironment.ps1

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)