diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 0056896..48c411a 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -7,7 +7,7 @@
"command": "/usr/local/bin/pwsh"
},
"windows": {
- "command": "pwsh.exe"
+ "command": "C:/Program Files/PowerShell/7-preview/pwsh.exe"
},
"linux": {
"command": "/usr/local/bin/pwsh"
diff --git a/Build.ps1 b/Build.ps1
index fd2eeff..a2f7bbb 100644
--- a/Build.ps1
+++ b/Build.ps1
@@ -8,4 +8,4 @@ Invoke-Build Build -ModuleName Microsoft.PowerShell.ConsoleGuiTools
# Run what was built...
# pwsh -noprofile -command "Import-Module -verbose '$PSScriptRoot/module/Microsoft.PowerShell.GraphicalTools'; Get-Module -all | Out-GridView -OutputMode Single -Title 'Imported Modules'
-pwsh -noprofile -command "Import-Module -verbose '$PSScriptRoot/module/Microsoft.PowerShell.ConsoleGuiTools'; Get-Module -all | Out-ConsoleGridView -OutputMode Single -Title 'Imported Modules' -Filter power"
\ No newline at end of file
+pwsh -noprofile -command "Import-Module -verbose '$PSScriptRoot/module/Microsoft.PowerShell.ConsoleGuiTools'; Get-Module -all | Out-ConsoleGridView -OutputMode Single -Title 'Imported Modules'"
\ No newline at end of file
diff --git a/README.md b/README.md
index d762d96..4c9770f 100644
--- a/README.md
+++ b/README.md
@@ -49,9 +49,10 @@ Now you're ready to build the code. You can do so in one of two ways:
PS ./GraphicalTools> Invoke-Build Build -ModuleName Microsoft.PowerShell.ConsoleGuiTools
```
-From there you can import the module that you just built for example:
+From there you can import the module that you just built for example (start a fresh `pwsh` instance first so you can unload the module with an `exit`; otherwise building again may fail because the `.dll` will be held open):
```powershell
+pwsh
Import-Module ./module/Microsoft.PowerShell.ConsoleGuiTools
```
@@ -59,6 +60,7 @@ And then run the cmdlet you want to test, for example:
```powershell
Get-Process | Out-ConsoleGridView
+exit
```
> NOTE: If you change the code and rebuild the project, you'll need to launch a
diff --git a/src/Microsoft.PowerShell.ConsoleGuiTools/Microsoft.PowerShell.ConsoleGuiTools.csproj b/src/Microsoft.PowerShell.ConsoleGuiTools/Microsoft.PowerShell.ConsoleGuiTools.csproj
index 2bd6ac6..adeabd1 100644
--- a/src/Microsoft.PowerShell.ConsoleGuiTools/Microsoft.PowerShell.ConsoleGuiTools.csproj
+++ b/src/Microsoft.PowerShell.ConsoleGuiTools/Microsoft.PowerShell.ConsoleGuiTools.csproj
@@ -6,7 +6,7 @@
-
+
diff --git a/src/Microsoft.PowerShell.ConsoleGuiTools/Microsoft.PowerShell.ConsoleGuiTools.psd1 b/src/Microsoft.PowerShell.ConsoleGuiTools/Microsoft.PowerShell.ConsoleGuiTools.psd1
index cd72692..27e839f 100644
--- a/src/Microsoft.PowerShell.ConsoleGuiTools/Microsoft.PowerShell.ConsoleGuiTools.psd1
+++ b/src/Microsoft.PowerShell.ConsoleGuiTools/Microsoft.PowerShell.ConsoleGuiTools.psd1
@@ -9,7 +9,7 @@
RootModule = 'Microsoft.PowerShell.ConsoleGuiTools.dll'
# Version number of this module.
-ModuleVersion = '0.6.3'
+ModuleVersion = '0.7.2'
# Supported PSEditions
CompatiblePSEditions = @( 'Core' )
@@ -105,6 +105,13 @@ PrivateData = @{
# ReleaseNotes of this module
ReleaseNotes = '# Release Notes
+## v0.7.0
+
+Upugraded to PS 7.2 and net60
+
+Updated Terminal.Gui to 1.6
+
+Fixed #131 - Strip ANSI
## v0.6.3
diff --git a/src/Microsoft.PowerShell.ConsoleGuiTools/TypeGetter.cs b/src/Microsoft.PowerShell.ConsoleGuiTools/TypeGetter.cs
index d1c57a7..fec9ef4 100644
--- a/src/Microsoft.PowerShell.ConsoleGuiTools/TypeGetter.cs
+++ b/src/Microsoft.PowerShell.ConsoleGuiTools/TypeGetter.cs
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
-using System;
+using System;
using System.Management.Automation;
using System.Management.Automation.Internal;
using System.Linq;
@@ -9,6 +9,7 @@
using System.Collections.Generic;
using Microsoft.PowerShell.Commands;
using OutGridView.Models;
+using System.Text.RegularExpressions;
namespace OutGridView.Cmdlet
{
diff --git a/src/Microsoft.PowerShell.GraphicalTools/Microsoft.PowerShell.GraphicalTools.csproj b/src/Microsoft.PowerShell.GraphicalTools/Microsoft.PowerShell.GraphicalTools.csproj
index b762ac9..3869004 100644
--- a/src/Microsoft.PowerShell.GraphicalTools/Microsoft.PowerShell.GraphicalTools.csproj
+++ b/src/Microsoft.PowerShell.GraphicalTools/Microsoft.PowerShell.GraphicalTools.csproj
@@ -5,7 +5,7 @@
-
+