Commit Graph
2485 Commits
Author SHA1 Message Date
Matej Kafka b18eacaa83 Resolve symbolic link target relative to the symbolic link instead of the working directory (#15235) (#20943) 2024-12-03 15:00:00 -08:00
Jordan Borean 22beba4a47 Fix up buffer management getting network roots (#24600)
Fixes the logic used when getting the PSDrive DisplayRoot for network PSDrive paths to exclude null terminators.
2024-11-26 11:59:34 +05:00
xtqqczze 060cbe3412 Set LangVersion compiler option to 13.0 (#24617) 2024-11-26 08:44:05 +05:00
Sean Wheeler a2b2d7e704 Update HelpInfoUri for 7.5 (#24610) 2024-11-22 09:58:44 -08:00
PowerShell Team Bot c2f1ff00ae Bump .NET 9 and dependencies (#24573) 2024-11-12 15:57:38 -08:00
Jordan Borean ba238808fb Support PSObject wrapped values in ArgumentToEncodingTransformationAttribute (#24555) 2024-11-12 08:41:22 +05:00
PowerShell Team BotandTravis Plunk 7db6a70b56 [master] Update branch for release (#24534)
* Update package references

* Update cgmanifest

* Update IsolatedModule.Tests.ps1

---------

Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2024-10-31 15:15:28 -07:00
Aditya Patwardhan 4b40e5f60e Revert "Update package references (#24414)" (#24532)
This reverts commit 01ae632636.
2024-10-31 13:29:49 -07:00
PowerShell Team Bot 01ae632636 Update package references (#24414) 2024-10-11 19:08:14 +00:00
Jordan Borean 3e3d83cfa4 Treat large Enum values as numbers in ConvertTo-Json (#20999) 2024-09-19 17:24:20 +00:00
James Truher [MSFT] 4fdc02b698 Add telemetry to track the use of features (#24247) 2024-09-16 16:28:19 -07:00
Aditya Patwardhan 9303de597d Bump .NET 9 to 9.0.100-rc.1.24452.12 (#24273) 2024-09-12 12:10:07 -07:00
Steve Lee 4a47d3582e Fix how processor architecture is validated in Import-Module (#24265) 2024-09-10 12:59:40 -07:00
Steve Lee ecb2ea6d44 Make features PSCommandNotFoundSuggestion, PSCommandWithArgs, and PSModuleAutoLoadSkipOfflineFiles stable (#24246) 2024-09-09 11:19:09 -07:00
Steve Lee 9ceae0c544 Add support to Get-Error to handle BoundParameters (#20640)
* Add support to `Get-Error` to handle BoundParameters

* sort the keys

* change to generalize for all dictionaries

* address Patrick's comment to generalize and use one codepath for dictionaries

* address codefactor
2024-08-26 19:25:16 -04:00
Steve Lee 59bce18372 Fix Get-FormatData to not cast a type incorrectly (#21157) 2024-08-26 13:32:09 -07:00
Ilya 5153f9ba63 Replace PSVersion source generator with incremental one (#23815) 2024-08-19 21:45:45 -07:00
SpyGod be59e5e80e Delay progress bar in Copy-Item and Remove-Item cmdlets (#24013) 2024-08-20 08:18:58 +05:00
Steve Lee 5eacbadb66 Use host exe to determine $PSHOME location when SMA.dll location is not found (#24072) 2024-08-19 23:13:50 +00:00
Steve Lee ba043c4c27 Fix Test-ModuleManifest so it can use a UNC path (#24115) 2024-08-19 15:40:31 -07:00
Travis PlunkandJames Truher [MSFT] c11e4cf0d1 Move to 9.0.0-preview.6.24327.7 (#24133)
---------

Co-authored-by: James Truher [MSFT] <jimtru@microsoft.com>
2024-08-13 10:18:39 -07:00
Jordan Borean c9bd109686 Fix Hyper-V Remoting when the module is imported via implicit remoting (#24032) 2024-08-01 11:19:47 -07:00
Justin Grote 5ae0fbd547 RecommendedAction: Explicitly start and stop ANSI Error Color (#24065) 2024-07-29 16:52:11 -07:00
Armaan Mcleod b39b5f4252 Add ConvertTo-CliXml and ConvertFrom-CliXml cmdlets (#21063) 2024-07-26 22:12:44 +05:00
Jordan Borean c107c9c66b Set-Acl: Do not fail on untranslatable SID (#21096) 2024-07-15 18:33:41 -07:00
Dongbo Wang dcf6754445 Fix the extent of the parser error when a number constant is invalid (#24024) 2024-07-09 10:55:25 -07:00
Steve Lee 2d83b95539 Fix Move-Item to throw error when moving into itself (#24004) 2024-07-08 23:53:17 +00:00
Jordan Borean ecdf7805ca Fix up .NET method invocation with Optional argument (#21387) 2024-07-01 15:46:39 -07:00
Jordan Borean 720f145e28 Fix progress calculation on Remove-Item (#23869) 2024-07-01 15:40:49 -07:00
Jordan Borean ab43c19390 Improve .NET overload definition of generic methods (#21326) 2024-07-01 14:03:01 -07:00
Steve Lee 908c325879 Enable -NoRestart to work with Register-PSSessionConfiguration (#23891) 2024-07-01 14:00:50 -07:00
Jordan Borean 6c66879c92 Optimize the += operation for a collection when it's an object array (#23901) 2024-06-17 16:23:04 -07:00
167a492415 Redirecting to a variable should be possible (#20381)
* add tests

* fix formatting issues

* Make redirection to variable an experimental feature.

Update test to check for experimental feature status.
Set-Variable will still have the -append parameter, but if used when the experimental feature is disabled, a parameter binding error will result.

* Check to be sure provider is not null.

* update to use different FullyQualifiedErrorId

* use Experimental attribute for append parameter rather than runtime check.

* Revert "update to use different FullyQualifiedErrorId"

This reverts commit 8b34af1ac19ecdb821b34534e446ab129830c92f.

* Update src/Microsoft.PowerShell.Commands.Utility/commands/utility/Var.cs

Co-authored-by: Ilya <darpa@yandex.ru>

* Move remediation steps into resource.

Update Set-Variable -Append to be correct when -name and -value are used.
Add tests for the new behavior in Set-Variable.

* Change expected error for contrained language mode and redirection.

* Update src/Microsoft.PowerShell.Commands.Utility/commands/utility/Var.cs

Co-authored-by: Ilya <darpa@yandex.ru>

* Support redirection of native app.

Add tests to validate.

* testexe needs proper case to run on linux.

* Address codefactor issues 01.

* Update src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs

Co-authored-by: Steve Lee <slee@microsoft.com>

* Update src/Microsoft.PowerShell.Commands.Utility/commands/utility/Var.cs

Co-authored-by: Steve Lee <slee@microsoft.com>

* Update src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs

Co-authored-by: Steve Lee <slee@microsoft.com>

---------

Co-authored-by: Ilya <darpa@yandex.ru>
Co-authored-by: Steve Lee <slee@microsoft.com>
2024-06-11 12:42:04 -04:00
James Truher [MSFT] 7f99fa1bf3 Get-Help may report parameters with ValueFromRemainingArguments attribute as pipeline-able (#23871)
* Remove FromRemainingArguments as an inputs indicator.

The parameter attribute FromRemainingArguments is not an indicator of pipeline input.
2024-06-03 21:20:55 +05:00
Armaan Mcleod a284fd482b Added progress bar for Remove-Item cmdlet (#20778) 2024-05-13 13:52:27 -04:00
Dongbo Wang d564d0fff9 Bump to .NET 9 preview 3 (#21782) 2024-05-09 15:36:52 -07:00
Patrick Meinecke 467538ff9b Fix generating OutputType when running in Constrained Language Mode (#21605) 2024-05-06 12:08:08 -07:00
Steve Lee 5efd627e91 Expand ~ to $home on Windows with tab completion (#21529) 2024-04-24 16:03:11 -07:00
Aditya Patwardhan e34a14322b Revert to version available on Nuget for Microsoft.CodeAnalysis.Analyzers (#21515) 2024-04-23 11:17:34 -07:00
David Kontyko fe38405b1d Separate DSC configuration parser check for ARM processor (#21395) 2024-04-22 16:03:42 -07:00
Steve LeeandSteve Lee 4bcc3f41c0 Fix [semver] type to pass semver.org tests (#21401)
* Fix `[semver]` type to pass semver.org tests

* fix test to split per OS specific newline

* replace all regex with semver.org ones adding new one for build label, update tests

---------

Co-authored-by: Steve Lee (POWERSHELL HE/HIM) (from Dev Box) <slee@ntdev.microsoft.com>
2024-04-22 16:32:22 -04:00
MartinGC94 a8457f8631 Don't complete parameter name and class member declarations (#21182) 2024-04-15 15:52:37 -07:00
dependabot[bot] 5edab1c10a Bump Microsoft.CodeAnalysis.Analyzers (#21449) 2024-04-15 10:48:28 -07:00
Justin Grote 7ad43292a8 Add RecommendedAction to ConciseView of the error reporting (#20826) 2024-04-15 10:35:23 -07:00
Aditya Patwardhan 94d623169a Multiple fixes in official build pipeline (#21408) 2024-04-03 15:06:04 -07:00
Ikko Eltociear Ashimine 9187ece875 Fix typo in SessionStateCmdletAPIs.cs (#21413)
hte -> the
2024-04-03 21:51:40 +05:00
Steve Lee 371ceff3b5 Fix Test-Path -IsValid to check for invalid path and filename characters (#21358) 2024-04-02 09:42:40 -07:00
Dongbo Wang 171d9dfa71 Revert the PR #17856 (Do not preserve temporary results when no need to do so) (#21368) 2024-03-25 14:09:11 -07:00
Dongbo Wang ad7278bbff Make sure the assembly/library resolvers are registered at early stage (#21361) 2024-03-21 16:25:12 -07:00
Ikko Eltociear Ashimine a332481d7e Fix typo in ast.cs (#21350)
statment -> statement
2024-03-21 08:20:15 +05:00