Commit Graph
2352 Commits
Author SHA1 Message Date
113e15ef34 Fix found during 7.5-preview.5 release (#24368)
* Merged PR 32689: Fix typo in release-MakeBlobPublic.yml

Fix typo in release-MakeBlobPublic.yml

* Merged PR 32693: Add back local NuGet source for test packages

Add back local NuGet source for test packages

* Merged PR 32696: Fixed Test Scenario for Compress-PSResource

The test was failing because a relative path was provided to parameter -DestinationPath.
Should update Compress-PSResource to accept relative paths for -DestinationPath.

----
#### AI description  (iteration 1)
#### PR Classification
Bug fix for a failing test scenario.

#### PR Summary
This pull request fixes the test scenario for the `Compress-PSResource` function.
- `Microsoft.PowerShell.PSResourceGet.Tests.ps1`: Updated the path resolution for `$PublishedNupkgs` using `Resolve-Path` and added a missing line break in the test for compressing a module.

* Merged PR 32709: Changelog for v7.5.0-preview.5

Added 7.5.0-preview.5 change log

----
#### AI description  (iteration 1)
#### PR Classification
Changelog update for the new preview release.

#### PR Summary
This pull request updates the changelog for the v7.5.0-preview.5 release, documenting breaking changes, engine updates, new features, and other improvements.
- `ConvertTo-Json`: Treat large Enum values as numbers.
- `Import-Module`: Fix processor architecture validation.
- `Resolve-Path` and `Convert-Path`: Add `-Force` parameter to support wildcard hidden files.
- `PSResourceGet` test: Fix cleanup.
- Various build and packaging improvements, including updates to dependencies and test scenarios.

* fixed readme lint error

---------

Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
Co-authored-by: Justin Chung <t-juchung@microsoft.com>
Co-authored-by: Justin Chung <chungjustin@microsoft.com>
2024-10-02 17:59:44 +00:00
Aditya Patwardhan 508825bb40 Fix cleanup in PSResourceGet test (#24339) (#24345) 2024-09-25 11:43:17 -07:00
Aditya Patwardhan 20ad8f3fd7 Add -Force parameter to Resolve-Path and Convert-Path cmdlets to support wildcard hidden files (#20981) (#24344) 2024-09-25 11:02:35 -07:00
Aditya Patwardhan 5733a9c104 Update Microsoft.PowerShell.PSResourceGet to 1.1.0-preview2 (#24300) (#24337) 2024-09-24 09:19:11 -07:00
Aditya Patwardhan 8ff65501a4 Treat large Enum values as numbers in ConvertTo-Json (#20999) (#24304) 2024-09-20 14:55:44 -07:00
Aditya Patwardhan f484c607d2 Bump .NET 9 to 9.0.100-rc.1.24452.12 (#24273) (#24320) 2024-09-20 12:43:27 -07:00
Aditya Patwardhan 95850df6e9 Fix how processor architecture is validated in Import-Module (#24265) (#24317) 2024-09-20 12:42:16 -07:00
alerickson 8c98b5cf60 Bump PSResourceGet to 1.1.0-preview1 (#24129) 2024-08-14 14:50:54 -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
Justin Chung 13e9aac36f Fix Invoke-RestMethod to allow -PassThru and -Outfile work together (#24086) 2024-08-05 12:23:47 -07:00
Armaan Mcleod b39b5f4252 Add ConvertTo-CliXml and ConvertFrom-CliXml cmdlets (#21063) 2024-07-26 22:12:44 +05:00
Justin Chung 9995125454 Add OutFile property in WebResponseObject (#24047) 2024-07-23 21:04:20 +00: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
CarloToso 86a7262a71 Fix WebCmdlets when -Body is specified but ContentType is not (#23952) 2024-07-01 15:35:23 -07:00
Jordan Borean ab43c19390 Improve .NET overload definition of generic methods (#21326) 2024-07-01 14:03:01 -07:00
Armaan Mcleod ec3840d6a1 Add IgnoreComments and AllowTrailingCommas options to Test-Json cmdlet (#23817) 2024-06-24 13:03:22 +05: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
James Truher [MSFT] 0be73f1a42 Add debugging to the MTU size test (#21463) 2024-05-21 13:45:07 -07:00
Dongbo Wang d564d0fff9 Bump to .NET 9 preview 3 (#21782) 2024-05-09 15:36:52 -07:00
Steve Lee 5efd627e91 Expand ~ to $home on Windows with tab completion (#21529) 2024-04-24 16:03:11 -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
Justin Grote 7ad43292a8 Add RecommendedAction to ConciseView of the error reporting (#20826) 2024-04-15 10:35:23 -07: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
guangwu b23607ef8c Fix typo in a test (#21337)
connectiong -> connecting
2024-03-29 08:51:37 +05: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
Patrick Meinecke 4faf52726d Make sure both stdout and stderr can be redirected from a native executable (#20997) 2024-03-14 11:42:30 -07:00
Dongbo Wang 4e357f129e Fix PowerShell class to support deriving from an abstract class with abstract properties (#21331) 2024-03-13 14:44:57 -07:00
Jordan Borean 4e2682920a Get-Process: Remove admin requirement for -IncludeUserName (#21302) 2024-03-04 21:48:19 -08:00
MartinGC94 aa97c515c8 Fall back to type inference when hashtable key value cannot be retrieved from safe expression (#21184) 2024-03-04 15:55:23 -08:00
Patrick Meinecke 1dc2ebe5bc Fix error formatting for pipeline enumeration exceptions (#20211) 2024-03-04 12:58:06 -08:00
Jordan Borean fcf4953c3b ConvertTo-Json: Serialize BigInteger as a number (#21000) 2024-02-27 14:52:58 -08:00
MartinGC94 338d1dcfa1 Fix the regression when doing type inference for $_ (#21223) 2024-02-26 15:11:19 -08:00
Steve Lee 05ed2f270c Revert "Adjust PUT method behavior to POST one for default content type in WebCmdlets" (#21049) 2024-02-26 11:51:12 -08:00
Steve Lee a880377d8a Fix a regression in Format-Table when header label is empty (#21156) 2024-02-26 11:44:30 -08:00
Aditya Patwardhan 8921a7dcad Skip test on Windows Server 2012 R2 for no-nl (#21265) 2024-02-22 16:26:30 -08:00
Aditya Patwardhan a145f47787 Bump to .NET 9 Preview 1 (#21229) 2024-02-16 03:15:11 +00:00
Jordan Borean 71035543e7 ConvertFrom-Json: Add -DateKind parameter (#20925)
Adds the -DateKind parameter to the ConvertFrom-Json that allows the
caller to control how DateTime strings are converted into an object. The
default behaviour is to create a DateTime value with the Kind being
Unspecified if no TZ is set, Utc if the TZ Z is set, Local (after
conversion) if an explicit TZ is set. This adds a Utc, Local to
explicitly set the Kind as desired as well as a Offset and String value
to create a DateTimeOffset or keep as a string.
2024-02-13 09:05:07 +05:00
Dom Slee c56a52b8c0 Add tilde expansion for windows native executables (#20402) 2024-02-12 09:58:27 -08:00
James Truher [MSFT] 0919240822 Rewrite the mac syslog tests to make them less flaky (#21174) 2024-02-07 13:09:41 -08:00
James Truher [MSFT] e9682c151d Fix using assembly to use Path.Combine when constructing assembly paths (#21169) 2024-02-01 09:49:20 -08:00
Dongbo Wang 783fb46e65 Validate the value for using namespace during semantic checks to prevent declaring invalid namespaces (#21162) 2024-02-01 09:42:37 -08:00
Jordan Borean 4f02a89906 Fix Get-Error serialization of array values (#21085)
Ensure Get-Error does not hang when attempting to serialize an exception
that contains a property whose type is an array of System.Type
instances. Also ensures that primitive types like System.Int32,
System.Boolean as well as System.String is formatted as a string rather
than an object with properties.
2024-01-24 08:41:18 +05:00
CarloToso 68204ae14f Fix regression -Tail 0 -Wait (#20734) 2024-01-11 11:49:31 +05:00
Dongbo Wang ac559185d0 Add Aliases to the properties shown up when formatting the help content of the parameter returned by Get-Help (#20994) 2024-01-09 11:21:31 -08:00