mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-26 12:08:37 +08:00
lib update
This commit is contained in:
@@ -9,19 +9,14 @@ using mRemoteNG.Resources.Language;
|
||||
namespace mRemoteNG.Connection.Protocol.PowerShell
|
||||
{
|
||||
[SupportedOSPlatform("windows")]
|
||||
public class ProtocolPowerShell : ProtocolBase
|
||||
public class ProtocolPowerShell(ConnectionInfo connectionInfo) : ProtocolBase
|
||||
{
|
||||
#region Private Fields
|
||||
|
||||
private IntPtr _handle;
|
||||
private readonly ConnectionInfo _connectionInfo;
|
||||
private readonly ConnectionInfo _connectionInfo = connectionInfo;
|
||||
private ConsoleControl.ConsoleControl _consoleControl;
|
||||
|
||||
public ProtocolPowerShell(ConnectionInfo connectionInfo)
|
||||
{
|
||||
_connectionInfo = connectionInfo;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public Methods
|
||||
@@ -45,7 +40,9 @@ namespace mRemoteNG.Connection.Protocol.PowerShell
|
||||
* Prepair powershell script parameter and create script
|
||||
*/
|
||||
// Path to the Windows PowerShell executable; can be configured through options.
|
||||
string psExe = @"C:\Windows\system32\WindowsPowerShell\v1.0\PowerShell.exe";
|
||||
//string psExe = @"C:\Windows\system32\WindowsPowerShell\v1.0\PowerShell.exe"; //old ps
|
||||
string psExe = @"C:\Program Files\PowerShell\7\pwsh.exe"; //new ps
|
||||
//string psExe = @"%LocalAppData%\Microsoft\WindowsApps\wt.exe"; //test for terminal
|
||||
|
||||
// Maximum number of login attempts; can be configured through options.
|
||||
int psLoginAttempts = 3;
|
||||
|
||||
@@ -18,10 +18,10 @@ using System.Resources;
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Version information
|
||||
[assembly: AssemblyVersion("1.77.3.1749")]
|
||||
[assembly: AssemblyFileVersion("1.77.3.1749")]
|
||||
[assembly: AssemblyVersion("1.77.3.1764")]
|
||||
[assembly: AssemblyFileVersion("1.77.3.1764")]
|
||||
[assembly: NeutralResourcesLanguageAttribute("en-US")]
|
||||
[assembly: AssemblyInformationalVersion("1.77.3 (Nightly Build 1749)")]
|
||||
[assembly: AssemblyInformationalVersion("1.77.3 (Nightly Build 1764)")]
|
||||
|
||||
// Logging
|
||||
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config")]
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
</COMReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="BouncyCastle.Cryptography" Version="2.3.0" />
|
||||
<PackageReference Include="BouncyCastle.Cryptography" Version="2.3.1" />
|
||||
<PackageReference Include="Castle.Core" Version="5.1.1" />
|
||||
<PackageReference Include="ConsoleControl" Version="1.3.0" />
|
||||
<PackageReference Include="ConsoleControlAPI" Version="1.3.0" />
|
||||
@@ -105,7 +105,7 @@
|
||||
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.77" />
|
||||
<PackageReference Include="MySql.Data" Version="8.4.0" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="Newtonsoft.Json.Schema" Version="3.0.15" />
|
||||
<PackageReference Include="Newtonsoft.Json.Schema" Version="3.0.16" />
|
||||
<PackageReference Include="ObjectListView.Updated" Version="2.9.3" />
|
||||
<PackageReference Include="OpenCover" Version="4.7.1221" />
|
||||
<PackageReference Include="Renci.SshNet.Async" Version="1.4.0" />
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="BouncyCastle.Cryptography" Version="2.3.0" />
|
||||
<PackageReference Include="BouncyCastle.Cryptography" Version="2.3.1" />
|
||||
<PackageReference Include="Cucumber.Messages" Version="24.1.0" />
|
||||
<PackageReference Include="Google.Protobuf" Version="3.26.1" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
|
||||
|
||||
Reference in New Issue
Block a user