diff --git a/PowerShellStandard.psm1 b/PowerShellStandard.psm1
index 1692e28..f930306 100644
--- a/PowerShellStandard.psm1
+++ b/PowerShellStandard.psm1
@@ -6,12 +6,23 @@ function Start-Build {
$srcDir = Join-Path $srcBase $version
Push-Location $srcDir
dotnet restore
- dotnet build
+ dotnet build --configuration Release
}
finally {
Pop-Location
}
}
+
+ # push into dotnetTemplate and build
+ try {
+ $templateBase = Join-Path $srcBase dotnetTemplate
+ Push-Location $templateBase
+ dotnet restore
+ dotnet build --configuration Release
+ }
+ finally {
+ Pop-Location
+ }
}
function Start-Clean {
@@ -43,7 +54,7 @@ function Invoke-Test {
try {
$testBase = Join-Path $PsScriptRoot "test/${version}"
Push-Location $testBase
- dotnet build
+ dotnet build --configuration Release
Invoke-Pester
}
finally {
@@ -51,8 +62,13 @@ function Invoke-Test {
}
}
- Push-Location (Join-Path $PsScriptRoot "test/dotnetTemplate")
- Invoke-Pester
+ try {
+ Push-Location (Join-Path $PsScriptRoot "test/dotnetTemplate")
+ Invoke-Pester
+ }
+ finally {
+ Pop-Location
+ }
}
function Export-NuGetPackage
@@ -65,9 +81,9 @@ function Export-NuGetPackage
try {
$srcDir = Join-Path $srcBase $version
Push-Location $srcDir
- $result = dotnet pack
+ $result = dotnet pack --configuration Release
if ( $? ) {
- Copy-Item -verbose:$true (Join-Path $srcDir "bin/Debug/PowerShellStandard.Library*.nupkg") $PsScriptRoot
+ Copy-Item -verbose:$true (Join-Path $srcDir "bin/Release/PowerShellStandard.Library*.nupkg") $PsScriptRoot
}
else {
Write-Error -Message "$result"
@@ -81,9 +97,9 @@ function Export-NuGetPackage
try {
$templateDir = Join-Path $PsScriptRoot src/dotnetTemplate
Push-Location $templateDir
- $result = dotnet pack
+ $result = dotnet pack --configuration Release
if ( $? ) {
- Copy-Item -verbose:$true (Join-Path $templateDir "bin/Debug/*.nupkg") $PsScriptRoot
+ Copy-Item -verbose:$true (Join-Path $templateDir "bin/Release/*.nupkg") $PsScriptRoot
}
else {
Write-Error -Message "$result"
diff --git a/src/3/PowerShellStandard.Library.nuspec b/src/3/PowerShellStandard.Library.nuspec
index cb48480..c489ec5 100644
--- a/src/3/PowerShellStandard.Library.nuspec
+++ b/src/3/PowerShellStandard.Library.nuspec
@@ -17,7 +17,7 @@
-
+
diff --git a/src/5/PowerShellStandard.Library.nuspec b/src/5/PowerShellStandard.Library.nuspec
index 7332db6..657e569 100644
--- a/src/5/PowerShellStandard.Library.nuspec
+++ b/src/5/PowerShellStandard.Library.nuspec
@@ -2,7 +2,7 @@
PowerShellStandard.Library
- 5.1.0-preview-06
+ 5.1.0-RC1
Microsoft
Microsoft,PowerShellTeam
https://github.com/PowerShell/PowerShellStandard
@@ -10,14 +10,14 @@
https://github.com/PowerShell/PowerShell/blob/master/LICENSE.txt
false
Contains the reference assemblies for PowerShell Standard 5
- (c) Microsoft Corporation. All rights reserved.
+ © Microsoft Corporation. All rights reserved.
PowerShell, reference, netstandard2, netstandard2.0
-
+
diff --git a/src/5/System.Management.Automation-lib.cs b/src/5/System.Management.Automation-lib.cs
index 01741d8..fd641bf 100644
--- a/src/5/System.Management.Automation-lib.cs
+++ b/src/5/System.Management.Automation-lib.cs
@@ -1,5 +1,6 @@
namespace Microsoft.PowerShell {
public sealed class DeserializingTypeConverter : System.Management.Automation.PSTypeConverter {
+ static DeserializingTypeConverter() { }
public DeserializingTypeConverter() { }
public override bool CanConvertFrom ( System.Management.Automation.PSObject sourceValue, System.Type destinationType ) { return default(bool); }
@@ -106,94 +107,6 @@ public ClearHistoryCommand() { }
protected override void BeginProcessing ( ) { }
protected override void ProcessRecord ( ) { }
- }
-
- [System.Management.Automation.CmdletAttribute("Connect", "PSSession", DefaultParameterSetName = "Name", SupportsShouldProcess = true, HelpUri = "https://go.microsoft.com/fwlink/?LinkID=210604", RemotingCapability = (System.Management.Automation.RemotingCapability)3)]
- [System.Management.Automation.OutputTypeAttribute(new System.Type[] { typeof(System.Management.Automation.Runspaces.PSSession)})]
- public class ConnectPSSessionCommand : Microsoft.PowerShell.Commands.PSRunspaceCmdlet, System.IDisposable {
- public ConnectPSSessionCommand() { }
-
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriGuid")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUri")]
- public System.Management.Automation.SwitchParameter AllowRedirection { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerNameGuid", ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerName", ValueFromPipelineByPropertyName=true)]
- public string ApplicationName { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerNameGuid")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUri")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriGuid")]
- public System.Management.Automation.Runspaces.AuthenticationMechanism Authentication { get { return default(System.Management.Automation.Runspaces.AuthenticationMechanism); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerNameGuid")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUri")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriGuid")]
- public string CertificateThumbprint { get { return default(string); } set { } }
- [System.Management.Automation.AliasAttribute(new string[] {"Cn"})]
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "ComputerName", Mandatory=true)]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerNameGuid", Mandatory=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public override string[] ComputerName { get { return default(string[]); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerNameGuid", ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerName", ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUri", ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriGuid", ValueFromPipelineByPropertyName=true)]
- public string ConfigurationName { get { return default(string); } set { } }
- [System.Management.Automation.AliasAttribute(new string[] {"URI","CU"})]
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "ConnectionUriGuid", Mandatory=true, ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "ConnectionUri", Mandatory=true, ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public System.Uri[] ConnectionUri { get { return default(System.Uri[]); } set { } }
- public override string[] ContainerId { get { return default(string[]); } }
- [System.Management.Automation.CredentialAttribute]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerNameGuid")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUri")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriGuid")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerName")]
- public System.Management.Automation.PSCredential Credential { get { return default(System.Management.Automation.PSCredential); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerNameGuid", Mandatory=true)]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriGuid", Mandatory=true)]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "InstanceId", Mandatory=true)]
- [System.Management.Automation.ValidateNotNullAttribute]
- public override System.Guid[] InstanceId { get { return default(System.Guid[]); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUri")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "Name", Mandatory=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public override string[] Name { get { return default(string[]); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerNameGuid")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerName")]
- [System.Management.Automation.ValidateRangeAttribute(1, 65535)]
- public int Port { get { return default(int); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "Session", Mandatory=true, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public System.Management.Automation.Runspaces.PSSession[] Session { get { return default(System.Management.Automation.Runspaces.PSSession[]); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerNameGuid")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUri")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriGuid")]
- public System.Management.Automation.Remoting.PSSessionOption SessionOption { get { return default(System.Management.Automation.Remoting.PSSessionOption); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "Session")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "Id")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerNameGuid")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUri")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriGuid")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "Name")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "InstanceId")]
- public int ThrottleLimit { get { return default(int); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerNameGuid")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerName")]
- public System.Management.Automation.SwitchParameter UseSSL { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- public override System.Guid[] VMId { get { return default(System.Guid[]); } }
- public override string[] VMName { get { return default(string[]); } }
-
- protected override void BeginProcessing ( ) { }
- public void Dispose ( ) { }
- protected override void EndProcessing ( ) { }
- protected override void ProcessRecord ( ) { }
- protected override void StopProcessing ( ) { }
-
}
[System.Management.Automation.CmdletAttribute("Debug", "Job", DefaultParameterSetName = "JobParameterSet", SupportsShouldProcess = true, HelpUri = "https://go.microsoft.com/fwlink/?LinkId=330208")]
@@ -212,135 +125,6 @@ public DebugJobCommand() { }
protected override void EndProcessing ( ) { }
protected override void StopProcessing ( ) { }
- }
-
- [System.Management.Automation.CmdletAttribute("Disable", "PSRemoting", SupportsShouldProcess = true, ConfirmImpact = (System.Management.Automation.ConfirmImpact)2, HelpUri = "https://go.microsoft.com/fwlink/?LinkID=144298")]
- public sealed class DisablePSRemotingCommand : System.Management.Automation.PSCmdlet {
- public DisablePSRemotingCommand() { }
-
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter Force { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- protected override void BeginProcessing ( ) { }
- protected override void EndProcessing ( ) { }
-
- }
-
- [System.Management.Automation.CmdletAttribute("Disable", "PSSessionConfiguration", SupportsShouldProcess = true, ConfirmImpact = (System.Management.Automation.ConfirmImpact)1, HelpUri = "https://go.microsoft.com/fwlink/?LinkID=144299")]
- public sealed class DisablePSSessionConfigurationCommand : System.Management.Automation.PSCmdlet {
- public DisablePSSessionConfigurationCommand() { }
-
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter Force { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public string[] Name { get { return default(string[]); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter NoServiceRestart { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- protected override void BeginProcessing ( ) { }
- protected override void EndProcessing ( ) { }
- protected override void ProcessRecord ( ) { }
-
- }
-
- [System.Management.Automation.OutputTypeAttribute(new System.Type[] { typeof(System.Management.Automation.Runspaces.PSSession)})]
- [System.Management.Automation.CmdletAttribute("Disconnect", "PSSession", DefaultParameterSetName = "Session", SupportsShouldProcess = true, HelpUri = "https://go.microsoft.com/fwlink/?LinkID=210605", RemotingCapability = (System.Management.Automation.RemotingCapability)3)]
- public class DisconnectPSSessionCommand : Microsoft.PowerShell.Commands.PSRunspaceCmdlet, System.IDisposable {
- public DisconnectPSSessionCommand() { }
-
- public override string[] ComputerName { get { return default(string[]); } set { } }
- public override string[] ContainerId { get { return default(string[]); } }
-
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "Id")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "Name")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "Session")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "InstanceId")]
- [System.Management.Automation.ValidateRangeAttribute(0, 2147483647)]
- public int IdleTimeoutSec { get { return default(int); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "Session")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "Name")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "Id")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "InstanceId")]
- public System.Management.Automation.Runspaces.OutputBufferingMode OutputBufferingMode { get { return default(System.Management.Automation.Runspaces.OutputBufferingMode); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "Session", Mandatory=true, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public System.Management.Automation.Runspaces.PSSession[] Session { get { return default(System.Management.Automation.Runspaces.PSSession[]); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "Id")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "Name")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "Session")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "InstanceId")]
- public int ThrottleLimit { get { return default(int); } set { } }
-
- public override System.Guid[] VMId { get { return default(System.Guid[]); } }
- public override string[] VMName { get { return default(string[]); } }
- protected override void BeginProcessing ( ) { }
- public void Dispose ( ) { }
- protected override void EndProcessing ( ) { }
- protected override void ProcessRecord ( ) { }
- protected override void StopProcessing ( ) { }
-
- }
-
- [System.Management.Automation.CmdletAttribute("Enable", "PSRemoting", SupportsShouldProcess = true, ConfirmImpact = (System.Management.Automation.ConfirmImpact)2, HelpUri = "https://go.microsoft.com/fwlink/?LinkID=144300")]
- public sealed class EnablePSRemotingCommand : System.Management.Automation.PSCmdlet {
- public EnablePSRemotingCommand() { }
-
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter Force { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter SkipNetworkProfileCheck { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- protected override void BeginProcessing ( ) { }
- protected override void EndProcessing ( ) { }
-
- }
-
- [System.Management.Automation.CmdletAttribute("Enable", "PSSessionConfiguration", SupportsShouldProcess = true, ConfirmImpact = (System.Management.Automation.ConfirmImpact)2, HelpUri = "https://go.microsoft.com/fwlink/?LinkID=144301")]
- public sealed class EnablePSSessionConfigurationCommand : System.Management.Automation.PSCmdlet {
- public EnablePSSessionConfigurationCommand() { }
-
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter Force { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 0, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public string[] Name { get { return default(string[]); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter NoServiceRestart { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public string SecurityDescriptorSddl { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter SkipNetworkProfileCheck { get { return default(System.Management.Automation.SwitchParameter); } set { } }
-
- protected override void BeginProcessing ( ) { }
- protected override void EndProcessing ( ) { }
- protected override void ProcessRecord ( ) { }
-
- }
-
- [System.Management.Automation.CmdletAttribute("Enter", "PSHostProcess", DefaultParameterSetName = "ProcessIdParameterSet", HelpUri = "https://go.microsoft.com/fwlink/?LinkId=403736")]
- public sealed class EnterPSHostProcessCommand : System.Management.Automation.PSCmdlet {
- public EnterPSHostProcessCommand() { }
-
- [System.Management.Automation.ParameterAttribute(Position = 1, ParameterSetName = "ProcessParameterSet")]
- [System.Management.Automation.ParameterAttribute(Position = 1, ParameterSetName = "ProcessIdParameterSet")]
- [System.Management.Automation.ParameterAttribute(Position = 1, ParameterSetName = "ProcessNameParameterSet")]
- [System.Management.Automation.ParameterAttribute(Position = 1, ParameterSetName = "PSHostProcessInfoParameterSet")]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public string AppDomainName { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "PSHostProcessInfoParameterSet", Mandatory=true, ValueFromPipeline=true)]
- [System.Management.Automation.ValidateNotNullAttribute]
- public Microsoft.PowerShell.Commands.PSHostProcessInfo HostProcessInfo { get { return default(Microsoft.PowerShell.Commands.PSHostProcessInfo); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "ProcessIdParameterSet", Mandatory=true)]
- [System.Management.Automation.ValidateRangeAttribute(0, 2147483647)]
- public int Id { get { return default(int); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "ProcessNameParameterSet", Mandatory=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public string Name { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "ProcessParameterSet", Mandatory=true, ValueFromPipeline=true)]
- [System.Management.Automation.ValidateNotNullAttribute]
- public System.Diagnostics.Process Process { get { return default(System.Diagnostics.Process); } set { } }
-
- protected override void EndProcessing ( ) { }
- protected override void StopProcessing ( ) { }
-
}
[System.Management.Automation.CmdletAttribute("Enter", "PSSession", DefaultParameterSetName = "ComputerName", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=135210", RemotingCapability = (System.Management.Automation.RemotingCapability)3)]
@@ -411,14 +195,6 @@ public EnvironmentProvider() { }
public const string ProviderName = "Environment";
protected override System.Collections.ObjectModel.Collection InitializeDefaultDrives ( ) { return default(System.Collections.ObjectModel.Collection); }
- }
-
- [System.Management.Automation.CmdletAttribute("Exit", "PSHostProcess", HelpUri = "https://go.microsoft.com/fwlink/?LinkId=403737")]
- public sealed class ExitPSHostProcessCommand : System.Management.Automation.PSCmdlet {
- public ExitPSHostProcessCommand() { }
-
- protected override void ProcessRecord ( ) { }
-
}
[System.Management.Automation.CmdletAttribute("Exit", "PSSession", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=135212")]
@@ -821,39 +597,6 @@ public void Dispose ( ) { }
protected override void ProcessRecord ( ) { }
protected override void StopProcessing ( ) { }
- }
-
- [System.Management.Automation.CmdletAttribute("Get", "PSHostProcessInfo", DefaultParameterSetName = "ProcessNameParameterSet", HelpUri = "https://go.microsoft.com/fwlink/?LinkId=517012")]
- [System.Management.Automation.OutputTypeAttribute(new System.Type[] { typeof(Microsoft.PowerShell.Commands.PSHostProcessInfo)})]
- public sealed class GetPSHostProcessInfoCommand : System.Management.Automation.PSCmdlet {
- public GetPSHostProcessInfoCommand() { }
-
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "ProcessIdParameterSet", Mandatory=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public System.Int32[] Id { get { return default(System.Int32[]); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "ProcessNameParameterSet")]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public string[] Name { get { return default(string[]); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "ProcessParameterSet", Mandatory=true, ValueFromPipeline=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public System.Diagnostics.Process[] Process { get { return default(System.Diagnostics.Process[]); } set { } }
-
- }
-
- [System.Management.Automation.CmdletAttribute("Get", "PSSessionCapability", HelpUri = "https://go.microsoft.com/fwlink/?LinkId=623709")]
- [System.Management.Automation.OutputTypeAttribute(new System.Type[2] { typeof(System.Management.Automation.CommandInfo), typeof(System.Management.Automation.Runspaces.InitialSessionState) })]
- public sealed class GetPSSessionCapabilityCommand : System.Management.Automation.PSCmdlet {
- public GetPSSessionCapabilityCommand() { }
-
- [System.Management.Automation.ParameterAttribute(Position = 0, Mandatory=true)]
- public string ConfigurationName { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter Full { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 1, Mandatory=true)]
- public string Username { get { return default(string); } set { } }
-
- protected override void BeginProcessing ( ) { }
-
}
[System.Management.Automation.OutputTypeAttribute(new System.Type[] { typeof(System.Management.Automation.Runspaces.PSSession)})]
@@ -955,21 +698,6 @@ protected override void EndProcessing ( ) { }
protected override void ProcessRecord ( ) { }
protected override void StopProcessing ( ) { }
- }
-
- [System.Management.Automation.CmdletAttribute("Get", "PSSessionConfiguration", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=144304")]
- [System.Management.Automation.OutputTypeAttribute(new string[] { "Microsoft.PowerShell.Commands.PSSessionConfigurationCommands#PSSessionConfiguration"})]
- public sealed class GetPSSessionConfigurationCommand : System.Management.Automation.PSCmdlet {
- public GetPSSessionConfigurationCommand() { }
-
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter Force { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 0, Mandatory=false)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public string[] Name { get { return default(string[]); } set { } }
- protected override void BeginProcessing ( ) { }
- protected override void ProcessRecord ( ) { }
-
}
[System.SerializableAttribute]
@@ -1596,154 +1324,6 @@ protected override void StopProcessing ( ) { }
}
- [System.Management.Automation.CmdletAttribute("New", "PSSessionConfigurationFile", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=217036")]
- public class NewPSSessionConfigurationFileCommand : System.Management.Automation.PSCmdlet {
- public NewPSSessionConfigurationFileCommand() { }
-
- [System.Management.Automation.ParameterAttribute]
- public System.Collections.IDictionary[] AliasDefinitions { get { return default(System.Collections.IDictionary[]); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public string[] AssembliesToLoad { get { return default(string[]); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public string Author { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public string CompanyName { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public string Copyright { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public string Description { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Collections.IDictionary EnvironmentVariables { get { return default(System.Collections.IDictionary); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public Microsoft.PowerShell.ExecutionPolicy ExecutionPolicy { get { return default(Microsoft.PowerShell.ExecutionPolicy); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public string[] FormatsToProcess { get { return default(string[]); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter Full { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Collections.IDictionary[] FunctionDefinitions { get { return default(System.Collections.IDictionary[]); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public string GroupManagedServiceAccount { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Guid Guid { get { return default(System.Guid); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.PSLanguageMode LanguageMode { get { return default(System.Management.Automation.PSLanguageMode); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public object[] ModulesToImport { get { return default(object[]); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter MountUserDrive { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 0, Mandatory=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public string Path { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Version PowerShellVersion { get { return default(System.Version); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Collections.IDictionary RequiredGroups { get { return default(System.Collections.IDictionary); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Collections.IDictionary RoleDefinitions { get { return default(System.Collections.IDictionary); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter RunAsVirtualAccount { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public string[] RunAsVirtualAccountGroups { get { return default(string[]); } set { } }
- [System.Management.Automation.ParameterAttribute]
- [System.Management.Automation.ValidateNotNullAttribute]
- public System.Version SchemaVersion { get { return default(System.Version); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public string[] ScriptsToProcess { get { return default(string[]); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.Remoting.SessionType SessionType { get { return default(System.Management.Automation.Remoting.SessionType); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public string TranscriptDirectory { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public string[] TypesToProcess { get { return default(string[]); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public long UserDriveMaximumSize { get { return default(long); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public object VariableDefinitions { get { return default(object); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public string[] VisibleAliases { get { return default(string[]); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public object[] VisibleCmdlets { get { return default(object[]); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public string[] VisibleExternalCommands { get { return default(string[]); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public object[] VisibleFunctions { get { return default(object[]); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public string[] VisibleProviders { get { return default(string[]); } set { } }
-
- protected override void ProcessRecord ( ) { }
-
- }
-
- [System.Management.Automation.CmdletAttribute("New", "PSSessionOption", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=144305", RemotingCapability = (System.Management.Automation.RemotingCapability)0)]
- [System.Management.Automation.OutputTypeAttribute(new System.Type[] { typeof(System.Management.Automation.Remoting.PSSessionOption)})]
- public sealed class NewPSSessionOptionCommand : System.Management.Automation.PSCmdlet {
- public NewPSSessionOptionCommand() { }
-
- [System.Management.Automation.ParameterAttribute]
- [System.Management.Automation.ValidateNotNullAttribute]
- public System.Management.Automation.PSPrimitiveDictionary ApplicationArguments { get { return default(System.Management.Automation.PSPrimitiveDictionary); } set { } }
- [System.Management.Automation.AliasAttribute(new string[1] { "CancelTimeoutMSec" })]
- [System.Management.Automation.ParameterAttribute]
- [System.Management.Automation.ValidateRangeAttribute(0, 2147483647)]
- public int CancelTimeout { get { return default(int); } set { } }
- [System.Management.Automation.ParameterAttribute]
- [System.Management.Automation.ValidateNotNullAttribute]
- public System.Globalization.CultureInfo Culture { get { return default(System.Globalization.CultureInfo); } set { } }
- [System.Management.Automation.AliasAttribute(new string[1] { "IdleTimeoutMSec" })]
- [System.Management.Automation.ParameterAttribute]
- [System.Management.Automation.ValidateRangeAttribute(-1, 2147483647)]
- public int IdleTimeout { get { return default(int); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter IncludePortInSPN { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute]
- [System.Management.Automation.ValidateRangeAttribute(0, 2147483647)]
- public int MaxConnectionRetryCount { get { return default(int); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public int MaximumReceivedDataSizePerCommand { get { return default(int); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public int MaximumReceivedObjectSize { get { return default(int); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public int MaximumRedirection { get { return default(int); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter NoCompression { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter NoEncryption { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter NoMachineProfile { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.AliasAttribute(new string[1] { "OpenTimeoutMSec" })]
- [System.Management.Automation.ParameterAttribute]
- [System.Management.Automation.ValidateRangeAttribute(0, 2147483647)]
- public int OpenTimeout { get { return default(int); } set { } }
- [System.Management.Automation.AliasAttribute(new string[1] { "OperationTimeoutMSec" })]
- [System.Management.Automation.ParameterAttribute]
- [System.Management.Automation.ValidateRangeAttribute(0, 2147483647)]
- public int OperationTimeout { get { return default(int); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.Runspaces.OutputBufferingMode OutputBufferingMode { get { return default(System.Management.Automation.Runspaces.OutputBufferingMode); } set { } }
- [System.Management.Automation.ParameterAttribute]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public System.Management.Automation.Remoting.ProxyAccessType ProxyAccessType { get { return default(System.Management.Automation.Remoting.ProxyAccessType); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.Runspaces.AuthenticationMechanism ProxyAuthentication { get { return default(System.Management.Automation.Runspaces.AuthenticationMechanism); } set { } }
- [System.Management.Automation.CredentialAttribute]
- [System.Management.Automation.ParameterAttribute]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public System.Management.Automation.PSCredential ProxyCredential { get { return default(System.Management.Automation.PSCredential); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter SkipCACheck { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter SkipCNCheck { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter SkipRevocationCheck { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute]
- [System.Management.Automation.ValidateNotNullAttribute]
- public System.Globalization.CultureInfo UICulture { get { return default(System.Globalization.CultureInfo); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter UseUTF16 { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- protected override void BeginProcessing ( ) { }
-
- }
[System.Management.Automation.CmdletAttribute("New", "PSTransportOption", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=210608", RemotingCapability = (System.Management.Automation.RemotingCapability)0)]
[System.Management.Automation.OutputTypeAttribute(new System.Type[] { typeof(Microsoft.PowerShell.Commands.WSManConfigurationOption)})]
@@ -1862,12 +1442,6 @@ protected override void ProcessRecord ( ) { }
}
- public enum OutTarget {
- Default = 0,
- Host = 1,
- Job = 2,
- }
-
public class PSEditionArgumentCompleter : System.Management.Automation.IArgumentCompleter {
public PSEditionArgumentCompleter() { }
@@ -1922,13 +1496,6 @@ protected virtual void CreateHelpersForSpecifiedVMSession ( ) { }
}
- public sealed class PSHostProcessInfo {
- internal PSHostProcessInfo() { }
- public string AppDomainName { get { return default(string); } private set { } }
- public int ProcessId { get { return default(int); } private set { } }
- public string ProcessName { get { return default(string); } private set { } }
- }
-
public abstract class PSRemotingBaseCmdlet : Microsoft.PowerShell.Commands.PSRemotingCmdlet {
protected PSRemotingBaseCmdlet() { }
@@ -2045,64 +1612,6 @@ protected PSRunspaceCmdlet() { }
protected System.Collections.Generic.Dictionary GetMatchingRunspacesByRunspaceId(bool writeErrorOnNoMatch) { return default(System.Collections.Generic.Dictionary); }
}
- public class PSSessionConfigurationCommandBase : System.Management.Automation.PSCmdlet {
- internal PSSessionConfigurationCommandBase() { }
-
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.Runspaces.PSSessionConfigurationAccessMode AccessMode { get { return default(System.Management.Automation.Runspaces.PSSessionConfigurationAccessMode); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "NameParameterSet")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "AssemblyNameParameterSet")]
- public string ApplicationBase { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 1, ParameterSetName = "AssemblyNameParameterSet", Mandatory=true)]
- public string AssemblyName { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 2, ParameterSetName = "AssemblyNameParameterSet", Mandatory=true)]
- public string ConfigurationTypeName { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter Force { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.AllowNullAttribute]
- [System.Management.Automation.ParameterAttribute]
- public System.Nullable MaximumReceivedDataSizePerCommandMB { get { return default(System.Nullable); } set { } }
- [System.Management.Automation.AllowNullAttribute]
- [System.Management.Automation.ParameterAttribute]
- public System.Nullable MaximumReceivedObjectSizeMB { get { return default(System.Nullable); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "NameParameterSet")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "AssemblyNameParameterSet")]
- public object[] ModulesToImport { get { return default(object[]); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "AssemblyNameParameterSet", Mandatory=true, ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "SessionConfigurationFile", Mandatory=true, ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "NameParameterSet", Mandatory=true, ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public string Name { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter NoServiceRestart { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "SessionConfigurationFile", Mandatory=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public string Path { get { return default(string); } set { } }
- [System.Management.Automation.AliasAttribute(new string[] {"PowerShellVersion"})]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "AssemblyNameParameterSet")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "NameParameterSet")]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public System.Version PSVersion { get { return default(System.Version); } set { } }
- [System.Management.Automation.CredentialAttribute]
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.PSCredential RunAsCredential { get { return default(System.Management.Automation.PSCredential); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public string SecurityDescriptorSddl { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "AssemblyNameParameterSet")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "NameParameterSet")]
- public System.Management.Automation.PSSessionTypeOption SessionTypeOption { get { return default(System.Management.Automation.PSSessionTypeOption); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter ShowSecurityDescriptorUI { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public string StartupScript { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.Runspaces.PSThreadOptions ThreadOptions { get { return default(System.Management.Automation.Runspaces.PSThreadOptions); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.PSTransportOption TransportOption { get { return default(System.Management.Automation.PSTransportOption); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter UseSharedProcess { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- }
-
[System.Management.Automation.CmdletAttribute("Receive", "Job", DefaultParameterSetName = "Location", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=113372", RemotingCapability = (System.Management.Automation.RemotingCapability)2)]
public class ReceiveJobCommand : Microsoft.PowerShell.Commands.JobCmdletBase, System.IDisposable {
public ReceiveJobCommand() { }
@@ -2145,117 +1654,6 @@ protected override void EndProcessing ( ) { }
protected override void ProcessRecord ( ) { }
protected override void StopProcessing ( ) { }
- }
-
- [System.Management.Automation.CmdletAttribute("Receive", "PSSession", DefaultParameterSetName = "Session", SupportsShouldProcess = true, HelpUri = "https://go.microsoft.com/fwlink/?LinkID=217037", RemotingCapability = (System.Management.Automation.RemotingCapability)3)]
- public class ReceivePSSessionCommand : Microsoft.PowerShell.Commands.PSRemotingCmdlet {
- public ReceivePSSessionCommand() { }
-
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriInstanceId")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriSessionName")]
- public System.Management.Automation.SwitchParameter AllowRedirection { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerSessionName", ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerInstanceId", ValueFromPipelineByPropertyName=true)]
- public string ApplicationName { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriInstanceId")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerSessionName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriSessionName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerInstanceId")]
- public System.Management.Automation.Runspaces.AuthenticationMechanism Authentication { get { return default(System.Management.Automation.Runspaces.AuthenticationMechanism); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerSessionName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerInstanceId")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriSessionName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriInstanceId")]
- public string CertificateThumbprint { get { return default(string); } set { } }
- [System.Management.Automation.AliasAttribute(new string[] {"Cn"})]
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "ComputerSessionName", Mandatory=true, ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "ComputerInstanceId", Mandatory=true, ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public string ComputerName { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerInstanceId", ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerSessionName", ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriSessionName", ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriInstanceId", ValueFromPipelineByPropertyName=true)]
- public string ConfigurationName { get { return default(string); } set { } }
- [System.Management.Automation.AliasAttribute(new string[] {"URI","CU"})]
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "ConnectionUriInstanceId", Mandatory=true, ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "ConnectionUriSessionName", Mandatory=true, ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public System.Uri ConnectionUri { get { return default(System.Uri); } set { } }
- [System.Management.Automation.CredentialAttribute]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriInstanceId")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerSessionName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriSessionName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerInstanceId")]
- public System.Management.Automation.PSCredential Credential { get { return default(System.Management.Automation.PSCredential); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "Id", Mandatory=true, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)]
- public int Id { get { return default(int); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriInstanceId", Mandatory=true)]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerInstanceId", Mandatory=true)]
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "InstanceId", Mandatory=true, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public System.Guid InstanceId { get { return default(System.Guid); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "Id")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "InstanceId")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "SessionName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerInstanceId")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerSessionName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriSessionName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriInstanceId")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "Session")]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public string JobName { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "SessionName", Mandatory=true, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerSessionName", Mandatory=true)]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriSessionName", Mandatory=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public string Name { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerSessionName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "Id")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "InstanceId")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "SessionName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerInstanceId")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "Session")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriSessionName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriInstanceId")]
- public Microsoft.PowerShell.Commands.OutTarget OutTarget { get { return default(Microsoft.PowerShell.Commands.OutTarget); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerInstanceId")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerSessionName")]
- [System.Management.Automation.ValidateRangeAttribute(1, 65535)]
- public int Port { get { return default(int); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "Session", Mandatory=true, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public System.Management.Automation.Runspaces.PSSession Session { get { return default(System.Management.Automation.Runspaces.PSSession); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerSessionName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerInstanceId")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriSessionName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ConnectionUriInstanceId")]
- public System.Management.Automation.Remoting.PSSessionOption SessionOption { get { return default(System.Management.Automation.Remoting.PSSessionOption); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerSessionName")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "ComputerInstanceId")]
- public System.Management.Automation.SwitchParameter UseSSL { get { return default(System.Management.Automation.SwitchParameter); } set { } }
-
- protected override void ProcessRecord ( ) { }
- protected override void StopProcessing ( ) { }
-
- }
-
- [System.Management.Automation.CmdletAttribute("Register", "PSSessionConfiguration", DefaultParameterSetName = "NameParameterSet", SupportsShouldProcess = true, ConfirmImpact = (System.Management.Automation.ConfirmImpact)2, HelpUri = "https://go.microsoft.com/fwlink/?LinkID=144306")]
- public sealed class RegisterPSSessionConfigurationCommand : Microsoft.PowerShell.Commands.PSSessionConfigurationCommandBase {
- public RegisterPSSessionConfigurationCommand() { }
-
- [System.Management.Automation.AliasAttribute(new string[] {"PA"})]
- [System.Management.Automation.ParameterAttribute]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- [System.Management.Automation.ValidateSetAttribute(new string[] {"x86","amd64"})]
- public string ProcessorArchitecture { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "NameParameterSet")]
- public System.Management.Automation.Runspaces.PSSessionType SessionType { get { return default(System.Management.Automation.Runspaces.PSSessionType); } set { } }
-
- protected override void BeginProcessing ( ) { }
- protected override void EndProcessing ( ) { }
- protected override void ProcessRecord ( ) { }
-
}
[System.Management.Automation.OutputTypeAttribute(new System.Type[] { typeof(System.Management.Automation.Job)}, ParameterSetName = new string[1] { "JobParameterSet" })]
@@ -2318,24 +1716,6 @@ public RemovePSSessionCommand() { }
protected override void ProcessRecord ( ) { }
- }
-
- [System.Management.Automation.OutputTypeAttribute(new System.Type[] { typeof(System.Management.Automation.Job)})]
- public class ResumeJobCommand : Microsoft.PowerShell.Commands.JobCmdletBase, System.IDisposable {
- public ResumeJobCommand() { }
-
- public override string[] Command { get { return default(string[]); } }
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "JobParameterSet", Mandatory=true, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public System.Management.Automation.Job[] Job { get { return default(System.Management.Automation.Job[]); } set { } }
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "__AllParameterSets")]
- public System.Management.Automation.SwitchParameter Wait { get { return default(System.Management.Automation.SwitchParameter); } set { } }
-
- public void Dispose ( ) { }
- protected override void EndProcessing ( ) { }
- protected override void ProcessRecord ( ) { }
- protected override void StopProcessing ( ) { }
-
}
[System.Management.Automation.CmdletAttribute("Save", "Help", DefaultParameterSetName = "Path", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=210612")]
@@ -2421,16 +1801,6 @@ public SetPSDebugCommand() { }
protected override void BeginProcessing ( ) { }
- }
-
- [System.Management.Automation.CmdletAttribute("Set", "PSSessionConfiguration", DefaultParameterSetName = "NameParameterSet", SupportsShouldProcess = true, ConfirmImpact = (System.Management.Automation.ConfirmImpact)2, HelpUri = "https://go.microsoft.com/fwlink/?LinkID=144307")]
- public sealed class SetPSSessionConfigurationCommand : Microsoft.PowerShell.Commands.PSSessionConfigurationCommandBase {
- public SetPSSessionConfigurationCommand() { }
-
- protected override void BeginProcessing ( ) { }
- protected override void EndProcessing ( ) { }
- protected override void ProcessRecord ( ) { }
-
}
[System.Management.Automation.CmdletAttribute("Set", "StrictMode", DefaultParameterSetName = "Version", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=113450")]
@@ -2548,31 +1918,6 @@ protected override void EndProcessing ( ) { }
protected override void ProcessRecord ( ) { }
protected override void StopProcessing ( ) { }
- }
-
- public class SuspendJobCommand : Microsoft.PowerShell.Commands.JobCmdletBase, System.IDisposable {
- public SuspendJobCommand() { }
-
- public override string[] Command { get { return default(string[]); } }
- [System.Management.Automation.AliasAttribute(new string[] {"F"})]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "FilterParameterSet")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "JobParameterSet")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "NameParameterSet")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "SessionIdParameterSet")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "InstanceIdParameterSet")]
- [System.Management.Automation.ParameterAttribute(ParameterSetName = "StateParameterSet")]
- public System.Management.Automation.SwitchParameter Force { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 0, ParameterSetName = "JobParameterSet", Mandatory=true, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public System.Management.Automation.Job[] Job { get { return default(System.Management.Automation.Job[]); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter Wait { get { return default(System.Management.Automation.SwitchParameter); } set { } }
-
- public void Dispose ( ) { }
- protected override void EndProcessing ( ) { }
- protected override void ProcessRecord ( ) { }
- protected override void StopProcessing ( ) { }
-
}
[System.Management.Automation.CmdletAttribute("Test", "ModuleManifest", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=141557")]
@@ -2585,39 +1930,10 @@ public TestModuleManifestCommand() { }
protected override void ProcessRecord ( ) { }
- }
-
- [System.Management.Automation.CmdletAttribute("Test", "PSSessionConfigurationFile", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=217039")]
- [System.Management.Automation.OutputTypeAttribute(new System.Type[] { typeof(System.Boolean)})]
- public class TestPSSessionConfigurationFileCommand : System.Management.Automation.PSCmdlet {
- public TestPSSessionConfigurationFileCommand() { }
-
- [System.Management.Automation.ParameterAttribute(Position = 0, Mandatory=true, ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)]
- public string Path { get { return default(string); } set { } }
-
- protected override void ProcessRecord ( ) { }
-
- }
-
- [System.Management.Automation.CmdletAttribute("Unregister", "PSSessionConfiguration", SupportsShouldProcess = true, ConfirmImpact = (System.Management.Automation.ConfirmImpact)1, HelpUri = "https://go.microsoft.com/fwlink/?LinkID=144308")]
- public sealed class UnregisterPSSessionConfigurationCommand : System.Management.Automation.PSCmdlet {
- public UnregisterPSSessionConfigurationCommand() { }
-
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter Force { get { return default(System.Management.Automation.SwitchParameter); } set { } }
- [System.Management.Automation.ParameterAttribute(Position = 0, Mandatory=true, ValueFromPipelineByPropertyName=true)]
- [System.Management.Automation.ValidateNotNullOrEmptyAttribute]
- public string Name { get { return default(string); } set { } }
- [System.Management.Automation.ParameterAttribute]
- public System.Management.Automation.SwitchParameter NoServiceRestart { get { return default(System.Management.Automation.SwitchParameter); } set { } }
-
- protected override void BeginProcessing ( ) { }
- protected override void EndProcessing ( ) { }
- protected override void ProcessRecord ( ) { }
-
}
public class UpdatableHelpCommandBase : System.Management.Automation.PSCmdlet {
+ static UpdatableHelpCommandBase() { }
internal UpdatableHelpCommandBase() { }
[System.Management.Automation.CredentialAttribute]
@@ -2872,13 +2188,7 @@ protected internal override void LoadFromDefaults ( System.Management.Automation
}
}
-namespace Microsoft.PowerShell.Commands.Internal {
- public static class RemotingErrorResources {
- public static string CouldNotResolveRoleDefinitionPrincipal { get { return default(string); } }
- public static string WinRMRestartWarning { get { return default(string); } }
- }
-}
namespace Microsoft.PowerShell.Commands.Internal.Format {
public abstract class FrontEndCommandBase : System.Management.Automation.PSCmdlet, System.IDisposable {
protected FrontEndCommandBase() { }
@@ -3413,6 +2723,7 @@ public enum CommandTypes {
}
public static class CompletionCompleters {
+ static CompletionCompleters() { }
public static System.Collections.Generic.IEnumerable CompleteCommand ( string commandName ) { return default(System.Collections.Generic.IEnumerable); }
public static System.Collections.Generic.IEnumerable CompleteCommand ( string commandName, string moduleName, System.Management.Automation.CommandTypes commandTypes ) { return default(System.Collections.Generic.IEnumerable); }
public static System.Collections.Generic.IEnumerable CompleteFilename ( string fileName ) { return default(System.Collections.Generic.IEnumerable); }
@@ -3630,7 +2941,6 @@ public virtual void SetBreakpoints ( System.Collections.Generic.IEnumerable breakPoints, System.Nullable startAction, System.Management.Automation.Host.PSHost host, System.Management.Automation.PathInfo path, System.Collections.Generic.Dictionary functionSourceMap ) { }
public virtual void SetParent ( System.Management.Automation.Debugger parent, System.Collections.Generic.IEnumerable breakPoints, System.Nullable startAction, System.Management.Automation.Host.PSHost host, System.Management.Automation.PathInfo path ) { }
public abstract void StopProcessCommand ( );
@@ -3683,14 +2993,6 @@ public DebugRecord(System.Management.Automation.PSObject record) { }
}
- public sealed class DebugSource {
- public DebugSource(string script, string scriptFile, string xamlDefinition) { }
-
- public string Script { get { return default(string); } private set { } }
- public string ScriptFile { get { return default(string); } private set { } }
- public string XamlDefinition { get { return default(string); } private set { } }
- }
-
public sealed class DefaultParameterDictionary : System.Collections.Hashtable {
public DefaultParameterDictionary() { }
public DefaultParameterDictionary(System.Collections.IDictionary dictionary) { }
@@ -4505,6 +3807,7 @@ public enum JobThreadOptions {
}
public static class LanguagePrimitives {
+ static LanguagePrimitives() { }
public static int Compare ( object first, object second ) { return default(int); }
public static int Compare ( object first, object second, bool ignoreCase ) { return default(int); }
public static int Compare ( object first, object second, bool ignoreCase, System.IFormatProvider formatProvider ) { return default(int); }
@@ -4525,6 +3828,17 @@ public static class LanguagePrimitives {
public static bool TryConvertTo ( object valueToConvert, System.IFormatProvider formatProvider, out T result ) { result = default(T); return default(bool); }
public static bool TryConvertTo ( object valueToConvert, out T result ) { result = default(T); return default(bool); }
+ internal class EnumMultipleTypeConverter : EnumSingleTypeConverter {
+ public override object ConvertFrom(object sourceValue, System.Type destinationType, System.IFormatProvider formatProvider, bool ignoreCase) { return default(object); }
+ }
+
+ internal class EnumSingleTypeConverter : System.Management.Automation.PSTypeConverter {
+ public override bool CanConvertFrom(object sourceValue, System.Type destinationType) { return default(bool); }
+ public override object ConvertFrom(object sourceValue, System.Type destinationType, System.IFormatProvider formatProvider, bool ignoreCase) { return default(object); }
+ public override bool CanConvertTo(object sourceValue, System.Type destinationType) { return default(bool); }
+ public override object ConvertTo(object sourceValue, System.Type destinationType, System.IFormatProvider formatProvider, bool ignoreCase) { return default(object); }
+ }
+
}
public class LineBreakpoint : System.Management.Automation.Breakpoint {
@@ -5710,6 +5024,7 @@ public PSMemberSet(string name, System.Collections.Generic.IEnumerable variables, params object[] args ) { return default(System.Management.Automation.PowerShell); }
public System.Management.Automation.PowerShell GetPowerShell ( System.Collections.Generic.Dictionary variables, out System.Collections.Generic.DictionaryusingVariables, params object[] args ) { usingVariables = default(System.Collections.Generic.Dictionary); return default(System.Management.Automation.PowerShell); }
public System.Management.Automation.SteppablePipeline GetSteppablePipeline ( System.Management.Automation.CommandOrigin commandOrigin ) { return default(System.Management.Automation.SteppablePipeline); }
- public System.Management.Automation.SteppablePipeline GetSteppablePipeline ( System.Management.Automation.CommandOrigin commandOrigin, params object[] args ) { return default(System.Management.Automation.SteppablePipeline); }
+ public System.Management.Automation.SteppablePipeline GetSteppablePipeline ( System.Management.Automation.CommandOrigin commandOrigin, object[] args ) { return default(System.Management.Automation.SteppablePipeline); }
public System.Management.Automation.SteppablePipeline GetSteppablePipeline ( ) { return default(System.Management.Automation.SteppablePipeline); }
public System.Collections.ObjectModel.Collection Invoke ( params object[] args ) { return default(System.Collections.ObjectModel.Collection); }
public object InvokeReturnAsIs ( params object[] args ) { return default(object); }
@@ -6776,7 +6093,7 @@ protected NullValidationAttributeBase() { }
public abstract class ValidateArgumentsAttribute : System.Management.Automation.Internal.CmdletMetadataAttribute {
protected ValidateArgumentsAttribute() { }
- protected virtual void Validate ( object arguments, System.Management.Automation.EngineIntrinsics engineIntrinsics ) { }
+ protected abstract void Validate ( object arguments, System.Management.Automation.EngineIntrinsics engineIntrinsics );
}
@@ -8141,6 +7458,7 @@ public RemotingWarningRecord(string message, System.Management.Automation.Remoti
}
public abstract class Runspace : System.IDisposable {
+ static Runspace() { }
internal Runspace() { }
public abstract event System.EventHandler AvailabilityChanged;
public abstract event System.EventHandler StateChanged;
@@ -8224,6 +7542,7 @@ public virtual void SetSessionOptions ( System.Management.Automation.Remoting.PS
}
public static class RunspaceFactory {
+ static RunspaceFactory() { }
public static System.Management.Automation.Runspaces.Runspace CreateOutOfProcessRunspace ( System.Management.Automation.Runspaces.TypeTable typeTable ) { return default(System.Management.Automation.Runspaces.Runspace); }
public static System.Management.Automation.Runspaces.Runspace CreateRunspace ( System.Management.Automation.Runspaces.RunspaceConnectionInfo connectionInfo ) { return default(System.Management.Automation.Runspaces.Runspace); }
public static System.Management.Automation.Runspaces.Runspace CreateRunspace ( System.Management.Automation.Host.PSHost host, System.Management.Automation.Runspaces.RunspaceConnectionInfo connectionInfo ) { return default(System.Management.Automation.Runspaces.Runspace); }
@@ -8541,6 +7860,7 @@ internal TypeMemberData() { }
}
public sealed class TypeTable {
+ static TypeTable() { }
public TypeTable(System.Collections.Generic.IEnumerable typeFiles) { }
public void AddType ( System.Management.Automation.Runspaces.TypeData typeData ) { }
@@ -8609,7 +7929,7 @@ public override void SetSessionOptions ( System.Management.Automation.Remoting.P
}
namespace System.Management.Automation.Language {
- internal partial interface IParameterMetadataProvider {
+ internal interface IParameterMetadataProvider {
System.Management.Automation.Language.ScriptBlockAst Body { get; }
System.Collections.ObjectModel.ReadOnlyCollection Parameters { get; }
// internal methods not included
@@ -9195,7 +8515,7 @@ public FunctionDefinitionAst(System.Management.Automation.Language.IScriptExtent
public bool IsFilter { get { return default(bool); } private set { } }
public bool IsWorkflow { get { return default(bool); } private set { } }
public string Name { get { return default(string); } private set { } }
- public System.Collections.ObjectModel.ReadOnlyCollection Parameters { get { return default(System.Collections.ObjectModel.ReadOnlyCollection); } }
+ public System.Collections.ObjectModel.ReadOnlyCollection Parameters { get { return default (System.Collections.ObjectModel.ReadOnlyCollection); } private set { } }
public override System.Management.Automation.Language.Ast Copy ( ) { return default(System.Management.Automation.Language.Ast); }
public System.Management.Automation.Language.CommentHelpInfo GetHelpContent ( System.Collections.Generic.Dictionary scriptBlockTokenCache ) { return default(System.Management.Automation.Language.CommentHelpInfo); }
public System.Management.Automation.Language.CommentHelpInfo GetHelpContent ( ) { return default(System.Management.Automation.Language.CommentHelpInfo); }
@@ -10174,9 +9494,9 @@ public static class AutomationNull {
}
public static class ClassOps {
- public static void CallBaseCtor ( object target, System.Reflection.ConstructorInfo ci, params object[] args ) { }
- public static object CallMethodNonVirtually ( object target, System.Reflection.MethodInfo mi, params object[] args ) { return default(object); }
- public static void CallVoidMethodNonVirtually ( object target, System.Reflection.MethodInfo mi, params object[] args ) { }
+ public static void CallBaseCtor ( object target, System.Reflection.ConstructorInfo ci, object[] args ) { }
+ public static object CallMethodNonVirtually ( object target, System.Reflection.MethodInfo mi, object[] args ) { return default(object); }
+ public static void CallVoidMethodNonVirtually ( object target, System.Reflection.MethodInfo mi, object[] args ) { }
public static void ValidateSetProperty ( System.Type type, string propertyName, object value ) { }
}
@@ -10229,6 +9549,7 @@ internal CommonParameters() { }
public string WarningVariable { get { return default(string); } set { } }
internal class ValidateVariableName : System.Management.Automation.ValidateArgumentsAttribute {
internal ValidateVariableName() { }
+ protected override void Validate (object arguments, System.Management.Automation.EngineIntrinsics engineIntrinsics) { }
}
}
diff --git a/src/dotnetTemplate/Microsoft.PowerShell.Standard.Module.Template/Microsoft.PowerShell.Standard.Module.Template/Microsoft.PowerShell.Standard.Module.Template.csproj b/src/dotnetTemplate/Microsoft.PowerShell.Standard.Module.Template/Microsoft.PowerShell.Standard.Module.Template/Microsoft.PowerShell.Standard.Module.Template.csproj
index 9a3550b..75b7bc0 100755
--- a/src/dotnetTemplate/Microsoft.PowerShell.Standard.Module.Template/Microsoft.PowerShell.Standard.Module.Template/Microsoft.PowerShell.Standard.Module.Template.csproj
+++ b/src/dotnetTemplate/Microsoft.PowerShell.Standard.Module.Template/Microsoft.PowerShell.Standard.Module.Template/Microsoft.PowerShell.Standard.Module.Template.csproj
@@ -6,7 +6,7 @@
-
+
All
diff --git a/test/3/PSS3.Tests.ps1 b/test/3/PSS3.Tests.ps1
index 0dc080e..fb64add 100644
--- a/test/3/PSS3.Tests.ps1
+++ b/test/3/PSS3.Tests.ps1
@@ -1,12 +1,12 @@
Describe "PowerShell Standard 3" {
BeforeAll {
- $cmdletAssembly = "bin/Debug/netstandard2.0/Demo.Cmdlet.dll"
+ $cmdletAssembly = "bin/Release/netstandard2.0/Demo.Cmdlet.dll"
$assemblyPath = Join-Path "$PSScriptRoot" $cmdletAssembly
$PSBin = (Get-Process -id $PID).MainModule.FileName
}
It "Can build a reference assembly" {
dotnet restore
- dotnet build
+ dotnet build --configuration Release
$assemblyPath | Should Exist
}
It "Can execute the compiled cmdlet" {
diff --git a/test/5/PSS5.Tests.ps1 b/test/5/PSS5.Tests.ps1
index eab467b..5555670 100644
--- a/test/5/PSS5.Tests.ps1
+++ b/test/5/PSS5.Tests.ps1
@@ -1,22 +1,242 @@
-Describe "PowerShell Standard 5" {
+Describe 'PowerShell Standard 5' {
+
BeforeAll {
- $cmdletAssembly = "bin/Debug/netstandard2.0/Demo.Cmdlet.dll"
- $assemblyPath = Join-Path "$PSScriptRoot" $cmdletAssembly
- $PSBin = (Get-Process -id $PID).MainModule.FileName
+ $repoRoot = git rev-parse --show-toplevel
+ $libraryPath = "${repoRoot}/src/5/bin/Release/netstandard2.0/System.Management.Automation.dll"
+ $assemblyExists = test-path $libraryPath
+ if ( $assemblyExists ) {
+ $standardAssembly = [System.Reflection.Assembly]::LoadFile($libraryPath)
+ }
}
- It "Can build a reference assembly" {
- try {
- Push-Location $PSScriptRoot
- dotnet restore
- dotnet build
- $assemblyPath | Should Exist
+
+ Context 'Creating a cmdlet' {
+ BeforeAll {
+ $cmdletAssembly = 'bin/Release/netstandard2.0/Demo.Cmdlet.dll'
+ $assemblyPath = Join-Path "$PSScriptRoot" $cmdletAssembly
+ $PSBin = (Get-Process -id $PID).MainModule.FileName
+ }
+ It 'Can build a reference assembly' {
+ try {
+ Push-Location $PSScriptRoot
+ dotnet restore
+ dotnet build --configuration Release
+ $assemblyPath | Should -Exist
+ }
+ finally {
+ Pop-Location
+ }
}
- finally {
- Pop-Location
+ It 'Can execute the compiled cmdlet' {
+ $result = & $PSBin -c "import-module $assemblyPath; Get-Thing"
+ $result | Should -Be 'success!'
}
}
- It "Can execute the compiled cmdlet" {
- $result = & $PSBin -c "import-module $assemblyPath; Get-Thing"
- $result | Should Be "success!"
+
+ Context 'Reflection tests' {
+
+ $testCases = @{
+ Name = "Issue 52: ValidateArgumentsAttribute.Validate method is not abstract"
+ ScriptBlock = {
+ $t = $standardAssembly.GetType('System.Management.Automation.ValidateArgumentsAttribute')
+ $m = $t.GetMember('Validate','Public,NonPublic,Instance,Static,DeclaredOnly')
+ $m.IsAbstract |Should -Be $true
+ }
+ },
+ @{
+ Name = "Issue 50: PSEventUnsubscribedEventHander argument type should be PSEventUnsubscribedEventArgs"
+ ScriptBlock = {
+ $t = $standardAssembly.GetType('System.Management.Automation.PSEventUnsubscribedEventHandler')
+ $m = $t.GetMethod('Invoke')
+ $parameters = $m.GetParameters()
+ $parameters[1].ParameterType.FullName | Should -Be 'System.Management.Automation.PSEventUnsubscribedEventArgs'
+ }
+ },
+ @{
+ Name = "Issue 44: FunctionMemberAst.Parameters should be accessible"
+ ScriptBlock = {
+ $t = $standardAssembly.GetType('System.Management.Automation.Language.FunctionMemberAst')
+ $p = $t.GetProperty('Parameters')
+ $p.GetMethod.IsPublic | Should -Be $true
+ }
+ },
+ @{
+ Name = "Issue 42: Runspace.Default should not contain public CreateNestedPipeline"
+ ScriptBlock = {
+ $t = $standardAssembly.GetType('System.Management.Automation.Runspaces.Runspace')
+ $t.GetMembers('Public,NonPublic,Instance,Static')|?{$_.Name -match 'CreatedNestedPipeline'}|Should -BeNullOrEmpty
+ }
+ },
+ @{
+ Name = "Issue 36: PSMemberInfo.Copy is marked 'virtual' but should be 'abstract'"
+ ScriptBlock = {
+ $t = $standardAssembly.GetType('System.Management.Automation.PSMemberInfo')
+ $m = $t.GetMethod('Copy')
+ $m.IsAbstract | Should -Be $true
+ }
+ },
+ @{
+ Name = "Issue 26: Several properties missing from CmdletProvider (also issue 14)"
+ ScriptBlock = {
+ $t = $standardAssembly.GetType('System.Management.Automation.Provider.CmdletProvider')
+ $t.GetProperty('CurrentPSTransaction') | Should -Not -BeNullOrEmpty
+ $t.GetProperty('DynamicParameters',[Reflection.BindingFlags]'NonPublic,Instance') | Should -Not -BeNullOrEmpty
+ $t.GetProperty('PSDriveInfo',[Reflection.BindingFlags]'NonPublic,Instance') | Should -Not -BeNullOrEmpty
+ $t.GetProperty('ProviderInfo',[Reflection.BindingFlags]'NonPublic,Instance') | Should -Not -BeNullOrEmpty
+ }
+ },
+ @{
+ Name = "Issue 19: SetJobState missing from Job class"
+ ScriptBlock = {
+ $t = $standardAssembly.GetType('System.Management.Automation.Job')
+ $t.GetMethod('SetJobState',[System.Reflection.BindingFlags]'NonPublic,Instance') | Should -Not -BeNullOrEmpty
+ }
+ },
+ @{
+ Name = "Issue 18: Debugger does not contain protected parameterless constructor"
+ ScriptBlock = {
+ $t = $standardAssembly.GetType('System.Management.Automation.Debugger')
+ # no public constructors
+ $t.GetConstructors().Count | Should -Be 0
+ # one protected, parameterless constructor
+ $constructor = $t.GetConstructors('NonPublic,Instance')
+ @($constructor).Count | Should -Be 1
+ $constructor.IsFamily | Should -Be $true
+ $constructor.GetParameters().Count | Should -Be 0
+ }
+ },
+ @{
+ Name = "Issue 17: ScriptExtent does not inherit IScriptExtent"
+ ScriptBlock = {
+ $t = $standardAssembly.GetType('System.Management.Automation.Language.ScriptExtent')
+ $t.GetInterface('System.Management.Automation.Language.IScriptExtent')|Should -Not -BeNullOrEmpty
+ }
+ },
+ @{
+ Name = "Issue 16: ICustomAstVistor2 does not inherit ICustomAstVistor"
+ ScriptBlock = {
+ $t = $standardAssembly.GetType('System.Management.Automation.Language.ICustomAstVisitor2')
+ $t.GetInterface('System.Management.Automation.Language.ICustomAstVisitor')|Should -Not -BeNullOrEmpty
+ }
+ },
+ @{
+ Name = "Issue 11: Missing cmdletization types"
+ ScriptBlock = {
+ $typeList = 'Microsoft.PowerShell.Cmdletization.BehaviorOnNoMatch',
+ 'Microsoft.PowerShell.Cmdletization.CmdletAdapter`1',
+ 'Microsoft.PowerShell.Cmdletization.MethodInvocationInfo', 'Microsoft.PowerShell.Cmdletization.MethodParameter',
+ 'Microsoft.PowerShell.Cmdletization.MethodParameterBindings',
+ 'Microsoft.PowerShell.Cmdletization.QueryBuilder',
+ 'Microsoft.PowerShell.Cmdletization.Xml.ConfirmImpact', 'Microsoft.PowerShell.Cmdletization.Xml.ItemsChoiceType'
+ foreach ( $t in $typeList ) {
+ $standardAssembly.GetType($t) | Should -Not -BeNullOrEmpty
+ }
+ }
+ },
+ @{
+ Name = "Issue 8: DefaultRunspace should be a static property"
+ ScriptBlock = {
+ $t = $standardAssembly.GetType('System.Management.Automation.Runspaces.Runspace')
+ $p = $t.GetProperty('DefaultRunspace',[System.Reflection.BindingFlags]'Public,Static')
+ $p | Should -Not -BeNullOrEmpty
+ }
+ },
+ @{
+ Name = "Issue 7: params keyword is left out for array type parameters"
+ ScriptBlock = {
+ $t = $standardAssembly.GetType('System.Management.Automation.OutputTypeAttribute')
+ foreach ($c in $t.GetConstructors()) {
+ $c.GetParameters()[-1].CustomAttributes.AttributeType.FullName | Should -Be System.ParamArrayAttribute
+ }
+ }
+ },
+ @{
+ Name = "Issue 6: PSObject.Properties is using int instead of string"
+ ScriptBlock = {
+ $t = $standardAssembly.GetType('System.Management.Automation.PSObject')
+ $p = $t.GetProperty('Properties')
+ $p.PropertyType.GetMember('Item').GetIndexParameters().ParameterType.FullName | Should -Be 'System.String'
+ }
+ },
+ @{
+ Name = "Issue 4: CreatePipeline should not be available"
+ ScriptBlock = {
+ $t = $standardAssembly.GetType('System.Management.Automation.Runspaces.Runspace')
+ $t.GetMembers('Public,NonPublic,Instance,Static')|?{$_.Name -match 'CreatePipeline'} | Should -BeNullOrEmpty
+ }
+ }
+
+ It '' -testcases $testCases -skip:(! $assemblyExists) {
+ param ( [string]$name, [scriptblock]$ScriptBlock )
+ & ${ScriptBlock}
+ }
+ }
+
+ Context 'The type list is expected' {
+ BeforeAll {
+ $smaT = [psobject].assembly.GetTypes()|?{$_.IsPublic}|Sort-Object FullName
+ $asmT = $standardAssembly.GetTypes()|?{$_.IsPublic}|Sort-Object FullName
+ # These are the types which we expect to not be in the standard library
+ $expectedMissingTypes = @{ Name = 'Microsoft.PowerShell.ProcessCodeMethods' },
+ @{ Name = 'Microsoft.PowerShell.DesiredStateConfiguration.ArgumentToConfigurationDataTransformationAttribute' },
+ @{ Name = 'Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscRemoteOperationsClass' },
+ @{ Name = 'Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache' },
+ @{ Name = 'Microsoft.PowerShell.Commands.GetExperimentalFeatureCommand' },
+ @{ Name = 'Microsoft.PowerShell.Commands.PSPropertyExpressionResult' },
+ @{ Name = 'Microsoft.PowerShell.Commands.PSPropertyExpression' },
+ @{ Name = 'Microsoft.PowerShell.Commands.UpdateHelpScope' },
+ @{ Name = 'Microsoft.PowerShell.CoreClr.Stubs.AuthenticationLevel' },
+ @{ Name = 'Microsoft.PowerShell.CoreClr.Stubs.ImpersonationLevel' },
+ @{ Name = 'System.Management.Automation.PowerShellAssemblyLoadContextInitializer' },
+ @{ Name = 'System.Management.Automation.Platform' },
+ @{ Name = 'System.Management.Automation.ValidateRangeKind' },
+ @{ Name = 'System.Management.Automation.CachedValidValuesGeneratorBase' },
+ @{ Name = 'System.Management.Automation.IValidateSetValuesGenerator' },
+ @{ Name = 'System.Management.Automation.ArgumentCompletionsAttribute' },
+ @{ Name = 'System.Management.Automation.GetSymmetricEncryptionKey' },
+ @{ Name = 'System.Management.Automation.StartRunspaceDebugProcessingEventArgs' },
+ @{ Name = 'System.Management.Automation.ProcessRunspaceDebugEndEventArgs' },
+ @{ Name = 'System.Management.Automation.ExperimentalFeature' },
+ @{ Name = 'System.Management.Automation.ExperimentAction' },
+ @{ Name = 'System.Management.Automation.ExperimentalAttribute' },
+ @{ Name = 'System.Management.Automation.PSSnapInSpecification' },
+ @{ Name = 'System.Management.Automation.PSParseError' },
+ @{ Name = 'System.Management.Automation.PSParser' },
+ @{ Name = 'System.Management.Automation.PSToken' },
+ @{ Name = 'System.Management.Automation.PSTokenType' },
+ @{ Name = 'System.Management.Automation.TypeInferenceRuntimePermissions' },
+ @{ Name = 'System.Management.Automation.PSVersionHashTable' },
+ @{ Name = 'System.Management.Automation.SemanticVersion' },
+ @{ Name = 'System.Management.Automation.LocationChangedEventArgs' },
+ @{ Name = 'System.Management.Automation.WorkflowInfo' },
+ @{ Name = 'System.Management.Automation.PSSnapInInfo' },
+ @{ Name = 'System.Management.Automation.VerbInfo' },
+ @{ Name = 'System.Management.Automation.Remoting.WSMan.WSManServerChannelEvents' },
+ @{ Name = 'System.Management.Automation.Remoting.WSMan.ActiveSessionsChangedEventArgs' },
+ @{ Name = 'System.Management.Automation.Runspaces.PipelineStateInfo' },
+ @{ Name = 'System.Management.Automation.Runspaces.PipelineStateEventArgs' },
+ @{ Name = 'System.Management.Automation.Runspaces.Pipeline' },
+ @{ Name = 'System.Management.Automation.Runspaces.PowerShellProcessInstance' },
+ @{ Name = 'System.Management.Automation.Runspaces.SSHConnectionInfo' },
+ @{ Name = 'System.Management.Automation.Runspaces.VMConnectionInfo' },
+ @{ Name = 'System.Management.Automation.Runspaces.PSSnapInException' },
+ @{ Name = 'System.Management.Automation.Runspaces.PipelineReader`1' },
+ @{ Name = 'System.Management.Automation.Runspaces.PipelineWriter' },
+ @{ Name = 'System.Management.Automation.Tracing.EtwActivity' },
+ @{ Name = 'System.Management.Automation.Tracing.PowerShellTraceTask' },
+ @{ Name = 'System.Management.Automation.Tracing.PowerShellTraceKeywords' },
+ @{ Name = 'System.Management.Automation.Tracing.Tracer' },
+ @{ Name = 'System.Management.Automation.Tracing.PowerShellTraceSource' },
+ @{ Name = 'System.Management.Automation.Tracing.PowerShellTraceSourceFactory' },
+ @{ Name = 'System.Management.Automation.Internal.TransactionParameters' }
+ }
+
+ It "There should be no types in standard which are not in the product" -skip:(! $assemblyExists) {
+ Compare-Object -reference $smaT -difference $asmT | ?{$_.SideIndicator -eq '=>' } | Should -BeNullOrEmpty
+ }
+
+ It " should not be in the standard library" -skip:(! $assemblyExists) -testcase $expectedMissingTypes {
+ param ( $Name )
+ $Name | Should -BeIn @($expectedMissingTypes.Values)
+ }
}
}
diff --git a/test/dotnetTemplate/dotnetTemplate.Tests.ps1 b/test/dotnetTemplate/dotnetTemplate.Tests.ps1
index 4a66af1..57f124d 100644
--- a/test/dotnetTemplate/dotnetTemplate.Tests.ps1
+++ b/test/dotnetTemplate/dotnetTemplate.Tests.ps1
@@ -2,7 +2,7 @@ Describe "PowerShell Standard C# Module Template" {
Context "Targeting PowerShell Standard 5.1" {
BeforeAll {
$testFolder = "./foo"
- $publishDir = "./bin/Debug/netstandard2.0/publish/"
+ $publishDir = "./bin/Release/netstandard2.0/publish/"
$PSBin = (Get-Process -id $PID).MainModule.FileName
$FavoriteNumber = 4
@@ -15,7 +15,7 @@ Describe "PowerShell Standard C# Module Template" {
dotnet new psmodule
}
It "Can package the module that was created" {
- dotnet publish
+ dotnet publish --configuration Release
$LASTEXITCODE | Should -Be 0
Test-Path $publishDir | Should -BeTrue
Test-Path foo.csproj | Should -BeTrue
@@ -41,7 +41,7 @@ Describe "PowerShell Standard C# Module Template" {
Context "Targeting PowerShell Standard 3" {
BeforeAll {
$testFolder = "./foo"
- $publishDir = "./bin/Debug/netstandard2.0/publish/"
+ $publishDir = "./bin/Release/netstandard2.0/publish/"
$PSBin = (Get-Process -id $PID).MainModule.FileName
$FavoriteNumber = 4
@@ -54,7 +54,7 @@ Describe "PowerShell Standard C# Module Template" {
dotnet new psmodule -v 3.0.0-preview-02
}
It "Can package the module that was created" {
- dotnet publish
+ dotnet publish --configuration Release
$LASTEXITCODE | Should -Be 0
Test-Path $publishDir | Should -BeTrue
Test-Path foo.csproj | Should -BeTrue
diff --git a/tools/releaseBuild/signing.xml b/tools/releaseBuild/signing.xml
index 947453f..adcd83b 100644
--- a/tools/releaseBuild/signing.xml
+++ b/tools/releaseBuild/signing.xml
@@ -6,7 +6,7 @@
dest="__OUTPATHROOT__\release\out\Microsoft.PowerShell.Standard.Module.Template.0.1.3.nupkg" />
-
+