From 4a44cd01513c75e969a752b00d3ab6d4090f6b0a Mon Sep 17 00:00:00 2001 From: Malcolm Daigle Date: Tue, 31 Mar 2026 12:35:21 -0700 Subject: [PATCH] Trim docs using pwsh via dotnet tool to support cross-platform local development. --- dotnet-tools.json | 7 +++++++ .../ref/Microsoft.Data.SqlClient.csproj | 9 ++++++--- tools/targets/TrimDocsForIntelliSense.targets | 4 ++-- 3 files changed, 15 insertions(+), 5 deletions(-) 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. --> - - + +