Commit Graph
958 Commits
Author SHA1 Message Date
Jordan Borean 3e3d83cfa4 Treat large Enum values as numbers in ConvertTo-Json (#20999) 2024-09-19 17:24:20 +00:00
Aditya Patwardhan 9303de597d Bump .NET 9 to 9.0.100-rc.1.24452.12 (#24273) 2024-09-12 12:10:07 -07:00
MartinGC94 22e8fed058 Write type data to the pipeline instead of collecting it (#24236) 2024-09-05 10:01:18 +05:00
Steve Lee 59bce18372 Fix Get-FormatData to not cast a type incorrectly (#21157) 2024-08-26 13:32:09 -07:00
Travis Plunk 5919a249a1 Fixes to Azure Public feed usage (#24149)
* Fix code PATs

* Fix feed PATs

* remove gallery commit

* update feed url

* Update to new variable groups

* Fix Variable name

* Fix credential template

* Disable Signing setup in prep stage

* Capture nuget source list

* lock down the firewall

* Add creds to feed switch to allow single switch location

* Use switch from build.psm1

* Use switch template instead of commands

* update to test feed

* disable codeql in jobs where we don't compile

* disable code sign validation for prep

* move capture steps to restore phase to see if it speeds things up

* remove duplicate capture of nuget config

* update test service

* Only build windows test service on windows

* warn when no config is generated

* try to fix test service

* fix web listener refs

* try removing dotnet tool

* update feedname with user info

* update package version that is not found

* try moving failing jobs to restore phase

* allow nuget inset in either phase

* update package ref

* use the right reporoot

* Move everything to restore

* Try adding build phase

* put nuget files in the right place

* move bootstrap into yaml

* remove onebranch agent items from macos build

* switch to environment variable

* bump a couple of packages

* fix formatting

* Fix static analysis issue

* update feed url to test restoring everything

* install the AzFeed cred provider

* fix binlog issues
2024-08-15 09:06:29 -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
Snowman-25 9456685252 Change type of LineNumber to ulong in Select-String (#24075) 2024-08-08 08:53:19 +05:00
Justin Chung 13e9aac36f Fix Invoke-RestMethod to allow -PassThru and -Outfile work together (#24086) 2024-08-05 12:23:47 -07:00
Dongbo Wang d173d8c2b5 Minor cleanup on local variable names within a method (#24105) 2024-08-05 11:41:07 -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
jshigetomi 666fdb5d5a Show file name in Invoke-WebRequest -OutFile -Verbose (#24041) 2024-07-17 08:00:42 +05:00
CarloToso 86a7262a71 Fix WebCmdlets when -Body is specified but ContentType is not (#23952) 2024-07-01 15:35:23 -07:00
Ikko Eltociear Ashimine 8c5a72522a Fix a typo in WebRequestSession.cs (#23963)
minor fix
2024-07-01 11:22:05 -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
Dongbo Wang d564d0fff9 Bump to .NET 9 preview 3 (#21782) 2024-05-09 15:36:52 -07:00
xtqqczze 0e106faafe Enable CA1868: Unnecessary call to 'Contains' for sets (#21165)
https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1868
2024-02-29 22:56:22 +05:00
Jordan Borean fcf4953c3b ConvertTo-Json: Serialize BigInteger as a number (#21000) 2024-02-27 14:52:58 -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
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
Greg Dennis 2cfa84c04c Bump JsonSchema.Net to v5.5.1 (#21120) 2024-02-01 09:58:07 -08:00
Dongbo Wang 8283ac05c3 Bump .NET SDK to 8.0.101 (#21084) 2024-01-17 11:53:01 -08:00
dependabot[bot] 9cc5826026 Bump JsonSchema.Net from 5.4.2 to 5.5.0 (#21027) 2024-01-10 15:48:06 -08:00
Chris Dent 5282c9bb91 Add Import-LocalizedData implicit Localization fallback (#19896)
* Adds culture fallback to Import-LocalizedData

* Only add fallback if current culture is not en-US

* Pester 4 compatibility

* Missing param block in It

* Missed param block for It

* Skip UICulture name test for Linux and Mac

* Removed test fragment
2024-01-04 13:42:41 -05:00
Armaan Mcleod 9383f554a2 Add -Scope argument completer for *-Variable, *-Alias & *-PSDrive commands (#20451) 2023-12-19 14:12:33 +05:00
Armaan Mcleod 0e18be6659 Add -Verb argument completer for Get-Verb/ Get-Command and refactor Get-Verb (#20286) 2023-12-16 21:34:51 +05:00
dependabot[bot] 455865cf75 Bump Markdig.Signed from 0.33.0 to 0.34.0 (#20926) 2023-12-14 10:09:31 -08:00
dependabot[bot] b77dd2407b Bump JsonSchema.Net from 5.4.0 to 5.4.2 (#20890) 2023-12-11 12:59:23 -08:00
Dongbo Wang fb1f8e1d43 Bump .NET SDK to 8.0.0 RTM build and move the current preview changelog to 7.4.md (#20850) 2023-12-05 13:22:56 -08:00
Matthias Wolf ac84c35820 Fix regression in #20608. (#20745) 2023-11-30 10:13:06 +05:00
dependabot[bot] 811efa46df Bump Microsoft.CodeAnalysis.CSharp from 4.8.0-2.final to 4.8.0 (#20751)
Bumps [Microsoft.CodeAnalysis.CSharp](https://github.com/dotnet/roslyn) from 4.8.0-2.final to 4.8.0.
- [Release notes](https://github.com/dotnet/roslyn/releases)
- [Changelog](https://github.com/dotnet/roslyn/blob/main/docs/Breaking%20API%20Changes.md)
- [Commits](https://github.com/dotnet/roslyn/commits)

---
updated-dependencies:
- dependency-name: Microsoft.CodeAnalysis.CSharp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-24 08:44:35 +05:00
dependabot[bot] d4470892d3 Bump JsonSchema.Net from 5.2.6 to 5.4.0 (#20736)
Bumps [JsonSchema.Net](https://github.com/gregsdennis/json-everything) from 5.2.6 to 5.4.0.
- [Commits](https://github.com/gregsdennis/json-everything/commits)

---
updated-dependencies:
- dependency-name: JsonSchema.Net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-23 09:06:59 +00:00
LNKLEO 12aa039634 Fix report wrong size on Invoke-WebRequest with -Resume switcher #20206 (#20207) 2023-11-23 13:50:21 +05:00
Patrick Meinecke d3c91d0e63 Added a missing ConfigureAwait(false) call (#20606) 2023-11-01 12:42:28 -07:00
Steve Lee edfc3bd992 Fix Group-Object so output uses current culture (#20608) 2023-10-31 22:06:36 +05:00
Aditya Patwardhan 5b05198d4f Fix package version for .NET nuget packages (#20551) 2023-10-20 10:29:53 -07:00
Aditya Patwardhan 17930e5e45 Bump to .NET 8 RC2 (#20510) 2023-10-18 18:10:25 +00:00
dependabot[bot] 8f09e3c2d8 Bump JsonSchema.Net from 5.2.5 to 5.2.6 (#20421) 2023-10-03 07:16:28 -07:00
Steve Lee 9ebeca3d6e Fix implicit remoting proxy cmdlets to act on common parameters (#20367) 2023-09-26 16:07:00 -07:00
dependabot[bot] 3b42cacc99 Bump Microsoft.CodeAnalysis.CSharp from 4.7.0 to 4.8.0-2.final (#20321) 2023-09-25 11:31:32 -07:00
Aditya Patwardhan 242af6adb5 Fix the release build by moving to the official .NET 8-rc.1 release build version (#20333) 2023-09-25 09:28:14 -07:00
Aditya Patwardhan f71404d834 Update .NET SDK to version 8.0.100-rc.1.23455.8 (#20269) 2023-09-20 14:33:49 -07:00
Christopher Andrews 8b1edaa496 Prevent Export-CSV from flushing with every input (#20282)
Removed StreamWriter flush from process block, the stream is flushed in the End block.
2023-09-18 21:59:15 +05:00
dependabot[bot] bf1ebf48c0 Bump JsonSchema.Net from 5.2.1 to 5.2.5 (#20225) 2023-09-11 09:48:26 -07:00
dependabot[bot] e3072583a1 Bump Markdig.Signed from 0.32.0 to 0.33.0 (#20186) 2023-09-06 10:12:54 -07:00
dependabot[bot] 09f26ab289 Bump JsonSchema.Net from 5.1.3 to 5.2.1 (#20193) 2023-09-06 10:12:43 -07:00
CarloToso 344ac7b08a New-Guid add -Empty and -InputObject parameters (#20014) 2023-08-28 09:33:55 -07:00
Thomas Nieto 39513bb3fb Remove parenthesis for empty attribute parameters (#20087) 2023-08-21 10:11:55 -07:00