Fix coding style for NewModuleManifestCommand (#9134)

This commit is contained in:
pougetat 2019-03-26 07:55:55 -04:00 committed by Ilya
parent e553aef0fb
commit 0f429f2553

View file

@ -30,7 +30,7 @@ namespace Microsoft.PowerShell.Commands
public sealed class NewModuleManifestCommand : PSCmdlet
{
/// <summary>
/// The output path for the generated file...
/// Gets or sets the output path for the generated file.
/// </summary>
[Parameter(Mandatory = true, Position = 0)]
public string Path
@ -43,7 +43,7 @@ namespace Microsoft.PowerShell.Commands
private string _path;
/// <summary>
/// Sets the list of files to load by default...
/// Gets or sets the list of files to load by default.
/// </summary>
[Parameter]
[AllowEmptyCollection]
@ -58,7 +58,7 @@ namespace Microsoft.PowerShell.Commands
private object[] _nestedModules;
/// <summary>
/// Set the GUID in the manifest file.
/// Gets or sets the GUID in the manifest file.
/// </summary>
[Parameter]
public Guid Guid
@ -71,7 +71,7 @@ namespace Microsoft.PowerShell.Commands
private Guid _guid = Guid.NewGuid();
/// <summary>
/// Set the author string in the manifest.
/// Gets or sets the author string in the manifest.
/// </summary>
[Parameter]
[AllowEmptyString]
@ -85,7 +85,7 @@ namespace Microsoft.PowerShell.Commands
private string _author;
/// <summary>
/// Set the company name in the manifest.
/// Gets or sets the company name in the manifest.
/// </summary>
[Parameter]
[AllowEmptyString]
@ -99,7 +99,7 @@ namespace Microsoft.PowerShell.Commands
private string _companyName = string.Empty;
/// <summary>
/// Set the copyright string in the module manifest.
/// Gets or sets the copyright string in the module manifest.
/// </summary>
[Parameter]
[AllowEmptyString]
@ -113,7 +113,7 @@ namespace Microsoft.PowerShell.Commands
private string _copyright;
/// <summary>
/// Set the module version...
/// Gets or sets the root module.
/// </summary>
[Parameter]
[AllowEmptyString]
@ -128,7 +128,7 @@ namespace Microsoft.PowerShell.Commands
private string _rootModule = null;
/// <summary>
/// Set the module version...
/// Gets or sets the module version.
/// </summary>
[Parameter]
[ValidateNotNull]
@ -142,7 +142,7 @@ namespace Microsoft.PowerShell.Commands
private Version _moduleVersion = new Version(0, 0, 1);
/// <summary>
/// Set the module description.
/// Gets or sets the module description.
/// </summary>
[Parameter]
[AllowEmptyString]
@ -156,7 +156,7 @@ namespace Microsoft.PowerShell.Commands
private string _description;
/// <summary>
/// Set the ProcessorArchitecture required by this module.
/// Gets or sets the ProcessorArchitecture required by this module.
/// </summary>
[Parameter]
public ProcessorArchitecture ProcessorArchitecture
@ -169,7 +169,7 @@ namespace Microsoft.PowerShell.Commands
private ProcessorArchitecture? _processorArchitecture = null;
/// <summary>
/// Set the PowerShell version required by this module.
/// Gets or sets the PowerShell version required by this module.
/// </summary>
[Parameter]
public Version PowerShellVersion
@ -182,10 +182,10 @@ namespace Microsoft.PowerShell.Commands
private Version _powerShellVersion = null;
/// <summary>
/// Set the CLR version required by the module.
/// Gets or sets the CLR version required by the module.
/// </summary>
[Parameter]
public Version ClrVersion
public Version CLRVersion
{
get { return _ClrVersion; }
@ -195,7 +195,7 @@ namespace Microsoft.PowerShell.Commands
private Version _ClrVersion = null;
/// <summary>
/// Set the version of .NET Framework required by the module.
/// Gets or sets the version of .NET Framework required by the module.
/// </summary>
[Parameter]
public Version DotNetFrameworkVersion
@ -208,7 +208,7 @@ namespace Microsoft.PowerShell.Commands
private Version _DotNetFrameworkVersion = null;
/// <summary>
/// Set the name of PowerShell host required by the module.
/// Gets or sets the name of PowerShell host required by the module.
/// </summary>
[Parameter]
public string PowerShellHostName
@ -221,7 +221,7 @@ namespace Microsoft.PowerShell.Commands
private string _PowerShellHostName = null;
/// <summary>
/// Set the version of PowerShell host required by the module.
/// Gets or sets the version of PowerShell host required by the module.
/// </summary>
[Parameter]
public Version PowerShellHostVersion
@ -234,7 +234,7 @@ namespace Microsoft.PowerShell.Commands
private Version _PowerShellHostVersion = null;
/// <summary>
/// Sets the list of Dependencies for the module.
/// Gets or sets the list of Dependencies for the module.
/// </summary>
[Parameter]
[ArgumentTypeConverter(typeof(ModuleSpecification[]))]
@ -250,7 +250,7 @@ namespace Microsoft.PowerShell.Commands
private object[] _requiredModules;
/// <summary>
/// Sets the list of types files for the module.
/// Gets or sets the list of types files for the module.
/// </summary>
[Parameter]
[AllowEmptyCollection]
@ -266,7 +266,7 @@ namespace Microsoft.PowerShell.Commands
private string[] _types;
/// <summary>
/// Sets the list of formats files for the module.
/// Gets or sets the list of formats files for the module.
/// </summary>
[Parameter]
[AllowEmptyCollection]
@ -282,7 +282,7 @@ namespace Microsoft.PowerShell.Commands
private string[] _formats;
/// <summary>
/// Sets the list of ps1 scripts to run in the session state of the import-module invocation.
/// Gets or sets the list of ps1 scripts to run in the session state of the import-module invocation.
/// </summary>
[Parameter]
[AllowEmptyCollection]
@ -298,7 +298,7 @@ namespace Microsoft.PowerShell.Commands
private string[] _scripts;
/// <summary>
/// Set the list of assemblies to load for this module.
/// Gets or sets the list of assemblies to load for this module.
/// </summary>
[Parameter]
[AllowEmptyCollection]
@ -314,7 +314,7 @@ namespace Microsoft.PowerShell.Commands
private string[] _requiredAssemblies;
/// <summary>
/// Specify any additional files used by this module.
/// Gets or sets the additional files used by this module.
/// </summary>
[Parameter]
[AllowEmptyCollection]
@ -330,7 +330,7 @@ namespace Microsoft.PowerShell.Commands
private string[] _miscFiles;
/// <summary>
/// List of other modules included with this module.
/// Gets or sets the list of other modules included with this module.
/// Like the RequiredModules key, this list can be a simple list of module names or a complex list of module hashtables.
/// </summary>
[Parameter]
@ -348,7 +348,7 @@ namespace Microsoft.PowerShell.Commands
private object[] _moduleList;
/// <summary>
/// Specify any functions to export from this manifest.
/// Gets or sets the functions to export from this manifest.
/// </summary>
[Parameter]
[AllowEmptyCollection]
@ -364,7 +364,7 @@ namespace Microsoft.PowerShell.Commands
private string[] _exportedFunctions;
/// <summary>
/// Specify any aliases to export from this manifest.
/// Gets or sets the aliases to export from this manifest.
/// </summary>
[Parameter]
[AllowEmptyCollection]
@ -380,7 +380,7 @@ namespace Microsoft.PowerShell.Commands
private string[] _exportedAliases;
/// <summary>
/// Specify any variables to export from this manifest.
/// Gets or sets the variables to export from this manifest.
/// </summary>
[Parameter]
[AllowEmptyCollection]
@ -396,7 +396,7 @@ namespace Microsoft.PowerShell.Commands
private string[] _exportedVariables = new string[] { "*" };
/// <summary>
/// Specify any cmdlets to export from this manifest.
/// Gets or sets the cmdlets to export from this manifest.
/// </summary>
[Parameter]
[AllowEmptyCollection]
@ -412,7 +412,7 @@ namespace Microsoft.PowerShell.Commands
private string[] _exportedCmdlets;
/// <summary>
/// Specify any dsc resources to export from this manifest.
/// Gets or sets the dsc resources to export from this manifest.
/// </summary>
[Parameter]
[AllowEmptyCollection]
@ -428,7 +428,7 @@ namespace Microsoft.PowerShell.Commands
private string[] _dscResourcesToExport;
/// <summary>
/// Specify compatible PSEditions of this module.
/// Gets or sets the compatible PSEditions of this module.
/// </summary>
[Parameter]
[AllowEmptyCollection]
@ -445,7 +445,7 @@ namespace Microsoft.PowerShell.Commands
private string[] _compatiblePSEditions;
/// <summary>
/// Specify any module-specific private data here.
/// Gets or sets the module-specific private data here.
/// </summary>
[Parameter(Mandatory = false)]
[AllowNull]
@ -459,7 +459,7 @@ namespace Microsoft.PowerShell.Commands
private object _privateData;
/// <summary>
/// Specify any Tags.
/// Gets or sets the Tags.
/// </summary>
[Parameter(Mandatory = false)]
[ValidateNotNullOrEmpty]
@ -468,28 +468,28 @@ namespace Microsoft.PowerShell.Commands
public string[] Tags { get; set; }
/// <summary>
/// Specify the ProjectUri.
/// Gets or sets the ProjectUri.
/// </summary>
[Parameter(Mandatory = false)]
[ValidateNotNullOrEmpty]
public Uri ProjectUri { get; set; }
/// <summary>
/// Specify the LicenseUri.
/// Gets or sets the LicenseUri.
/// </summary>
[Parameter(Mandatory = false)]
[ValidateNotNullOrEmpty]
public Uri LicenseUri { get; set; }
/// <summary>
/// Specify the IconUri.
/// Gets or sets the IconUri.
/// </summary>
[Parameter(Mandatory = false)]
[ValidateNotNullOrEmpty]
public Uri IconUri { get; set; }
/// <summary>
/// Specify the ReleaseNotes.
/// Gets or sets the ReleaseNotes.
/// </summary>
[Parameter(Mandatory = false)]
[ValidateNotNullOrEmpty]
@ -516,7 +516,7 @@ namespace Microsoft.PowerShell.Commands
public string[] ExternalModuleDependencies { get; set; }
/// <summary>
/// Specify the HelpInfo URI.
/// Gets or sets the HelpInfo URI.
/// </summary>
[Parameter]
[AllowNull]
@ -531,7 +531,7 @@ namespace Microsoft.PowerShell.Commands
private string _helpInfoUri;
/// <summary>
/// This parameter causes the module manifest string to be to the output stream...
/// Gets or sets whether the module manifest string should go to the output stream.
/// </summary>
[Parameter]
public SwitchParameter PassThru
@ -544,7 +544,7 @@ namespace Microsoft.PowerShell.Commands
private bool _passThru;
/// <summary>
/// Specify the Default Command Prefix.
/// Gets or sets the Default Command Prefix.
/// </summary>
[Parameter]
[AllowNull]
@ -1088,7 +1088,7 @@ namespace Microsoft.PowerShell.Commands
BuildModuleManifest(result, nameof(DotNetFrameworkVersion), StringUtil.Format(Modules.DotNetFrameworkVersion, Modules.PrerequisiteForDesktopEditionOnly), _DotNetFrameworkVersion != null && !string.IsNullOrEmpty(_DotNetFrameworkVersion.ToString()), () => QuoteName(_DotNetFrameworkVersion), streamWriter);
BuildModuleManifest(result, nameof(Modules.CLRVersion), StringUtil.Format(Modules.CLRVersion, Modules.PrerequisiteForDesktopEditionOnly), _ClrVersion != null && !string.IsNullOrEmpty(_ClrVersion.ToString()), () => QuoteName(_ClrVersion), streamWriter);
BuildModuleManifest(result, nameof(CLRVersion), StringUtil.Format(Modules.CLRVersion, Modules.PrerequisiteForDesktopEditionOnly), _ClrVersion != null && !string.IsNullOrEmpty(_ClrVersion.ToString()), () => QuoteName(_ClrVersion), streamWriter);
BuildModuleManifest(result, nameof(ProcessorArchitecture), Modules.ProcessorArchitecture, _processorArchitecture.HasValue, () => QuoteName(_processorArchitecture.ToString()), streamWriter);