diff --git a/dotnet-tools.json b/dotnet-tools.json
index 1f59e06063..11e3494512 100644
--- a/dotnet-tools.json
+++ b/dotnet-tools.json
@@ -15,6 +15,13 @@
"apicompat"
],
"rollForward": false
+ },
+ "powershell": {
+ "version": "7.6.0",
+ "commands": [
+ "pwsh"
+ ],
+ "rollForward": false
}
}
}
\ No newline at end of file
diff --git a/src/Microsoft.Data.SqlClient/ref/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/ref/Microsoft.Data.SqlClient.csproj
index dbdf7e9338..675dd20d5c 100644
--- a/src/Microsoft.Data.SqlClient/ref/Microsoft.Data.SqlClient.csproj
+++ b/src/Microsoft.Data.SqlClient/ref/Microsoft.Data.SqlClient.csproj
@@ -36,6 +36,10 @@
$(ArtifactPath)$(AssemblyName).ref/$(ReferenceType)-$(Configuration)/
+
+
+
+
- powershell.exe
- pwsh
- $(PowerShellCommand)
+ dotnet tool run pwsh
-NonInteractive
-ExecutionPolicy Unrestricted
-Command "$(RepoRoot)tools\intellisense\TrimDocs.ps1 -inputFile '$(DocumentationFile)' -outputFile '$(DocumentationFile)'"
diff --git a/tools/targets/TrimDocsForIntelliSense.targets b/tools/targets/TrimDocsForIntelliSense.targets
index 05feb26739..fd0ca40ea8 100644
--- a/tools/targets/TrimDocsForIntelliSense.targets
+++ b/tools/targets/TrimDocsForIntelliSense.targets
@@ -3,7 +3,7 @@ The .NET Foundation licenses this file to you under the MIT license. -->
-
-
+
+