Skip to content

Commit c746a03

Browse files
PR comments fixed
1 parent 3ae74c8 commit c746a03

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

documentation/development-docs/generate-format.ps1xml-file.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ To specify what goes into the table view - use the **ScriptBlock** attribute pro
260260
{
261261
// code omitted for brevity
262262
263-
[Ps1Xml(Label = "AccountId", Target = ViewControl.Table, ScriptBlock = "$_.Account.Id")]
264-
[Ps1Xml(Label = "AccountType", Target = ViewControl.Table, ScriptBlock = "$_.Account.Type")]
263+
[Ps1Xml(Label = "Account.Id", Target = ViewControl.Table, ScriptBlock = "$_.Account.Id")]
264+
[Ps1Xml(Label = "Account.Type", Target = ViewControl.Table, ScriptBlock = "$_.Account.Type")]
265265
public IAzureAccount Account { get; set; }
266266

267267
// code omitted for brevity
@@ -272,8 +272,8 @@ Note: **$_** symbol in PowerShell means the same as **this** key word means in C
272272

273273
These two attribute will result in 2 column in the table view:
274274
```Ps
275-
Account Id Account Type
276-
========== ============
275+
Account.Id Account.Type
276+
========== ============
277277
```
278278
## GroupBy a property.
279279

@@ -361,13 +361,13 @@ This will place the column at the very beginning of the table.
361361
```Powershell
362362
PS E:\git\azure-powershell> New-FormatPs1Xml -OnlyMarkedProperties -ModulePath .\artifacts\Debug\Az.Storage\Az.Storage.psd1
363363
E:\git\azure-powershell\Microsoft.Azure.PowerShell.Cmdlets.Storage.Management.generated.format.ps1xml
364-
E:\git\psxml\azure-powershell\Microsoft.Azure.PowerShell.Cmdlets.Storage.generated.format.ps1xml
364+
E:\git\azure-powershell\Microsoft.Azure.PowerShell.Cmdlets.Storage.generated.format.ps1xml
365365
```
366366
* Below is an example of how to generate a format.ps1xml file for the ```Az.Account``` module:
367367
```powershell
368368
PS E:\git\azure-powershell> New-FormatPs1Xml -OnlyMarkedProperties -ModulePath .\artifacts\Debug\Az.Accounts\Az.Accounts.psd1
369369
E:\git\azure-powershell\Microsoft.Azure.PowerShell.Cmdlets.Accounts.generated.format.ps1xml
370-
PS E:\git\psxml\azure-powershell>
370+
PS E:\git\azure-powershell>
371371
```
372372

373373
# How to test the format.ps1xml file.

tools/FormatPs1XmlGenerator/CmdletsForTest/Dummy.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Copyright = 'Microsoft Corporation. All rights reserved.'
2222
Description = 'Test'
2323

2424
# Minimum version of the Windows PowerShell engine required by this module
25-
PowerShellVersion = '3.0'
25+
PowerShellVersion = '5.1'
2626

2727
# Name of the Windows PowerShell host required by this module
2828
# PowerShellHostName = ''
@@ -31,7 +31,7 @@ PowerShellVersion = '3.0'
3131
# PowerShellHostVersion = ''
3232

3333
# Minimum version of Microsoft .NET Framework required by this module
34-
DotNetFrameworkVersion = '4.5.2'
34+
DotNetFrameworkVersion = '4.7.2'
3535

3636
# Minimum version of the common language runtime (CLR) required by this module
3737
CLRVersion = '4.0'

tools/FormatPs1XmlGenerator/FormatPs1XmlGenerator/FormatPs1XmlGenerator.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Copyright = 'Microsoft Corporation. All rights reserved.'
2222
Description = 'Generates format.ps1xml files for a provided module'
2323

2424
# Minimum version of the Windows PowerShell engine required by this module
25-
PowerShellVersion = '3.0'
25+
PowerShellVersion = '5.1'
2626

2727
# Name of the Windows PowerShell host required by this module
2828
# PowerShellHostName = ''
@@ -31,7 +31,7 @@ PowerShellVersion = '3.0'
3131
# PowerShellHostVersion = ''
3232

3333
# Minimum version of Microsoft .NET Framework required by this module
34-
DotNetFrameworkVersion = '4.5.2'
34+
DotNetFrameworkVersion = '4.7.2'
3535

3636
# Minimum version of the common language runtime (CLR) required by this module
3737
CLRVersion = '4.0'

0 commit comments

Comments
 (0)