-
Notifications
You must be signed in to change notification settings - Fork 311
Closed
Labels
Triage Done ✔️Issues that are triaged by dev team and are in investigation.Issues that are triaged by dev team and are in investigation.
Milestone
Description
Describe the bug
When attempting to build the project in visual studio the build fails because a target file is attempting to use a powershell script that does not work.
The command "pwsh -NonInteractive -ExecutionPolicy Unrestricted -Command "E:\Programming\csharp7\SqlClient\src\..\tools\intellisense\TrimDocs.ps1 -inputFile 'E:\Programming\csharp7\SqlClient\src\..\artifacts\Project\bin\Windows_NT\Debug\Microsoft.Data.SqlClient\ref\net9.0\\Microsoft.Data.SqlClient.xml' -outputFile 'E:\Programming\csharp7\SqlClient\src\..\artifacts\Project\bin\Windows_NT\Debug\Microsoft.Data.SqlClient\ref\net9.0\\Microsoft.Data.SqlClient.xml'"" exited with code 9009.
To reproduce
Open the solution in Visual Studio and do a rebuild
Expected behavior
The build succeeds
Further technical details
Additional context
If I try to execute the command that is being used at the console it's clear that the alias for powershell that is being used pswh
does not exist by default on windows.
C:\Users\Wraith>pwsh -NonInteractive -ExecutionPolicy Unrestricted -Command "E:\Programming\csharp7\SqlClient\src\..\tools\intellisense\TrimDocs.ps1 -inputFile 'E:\Programming\csharp7\SqlClient\src\..\artifacts\Project\bin\Windows_NT\Debug\Microsoft.Data.SqlClient\ref\net9.0\\Microsoft.Data.SqlClient.xml' -outputFile 'E:\Programming\csharp7\SqlClient\src\..\artifacts\Project\bin\Windows_NT\Debug\Microsoft.Data.SqlClient\ref\net9.0\\Microsoft.Data.SqlClient.xml'"
'pwsh' is not recognized as an internal or external command,
operable program or batch file.
Metadata
Metadata
Assignees
Labels
Triage Done ✔️Issues that are triaged by dev team and are in investigation.Issues that are triaged by dev team and are in investigation.