Skip to content

Commit c07733b

Browse files
authored
Merge pull request #80 from SuessLabs/feature/Issue-79-SupportVS17.9
Visual Studio v17.9.x support
2 parents 8865ad0 + 7adbfdb commit c07733b

File tree

9 files changed

+41
-188
lines changed

9 files changed

+41
-188
lines changed

readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,6 @@ To contribute, please pick off an item from the project or issue page. We'd love
108108
* [Extension Docs](https://docs.microsoft.com/en-us/visualstudio/extensibility/creating-a-settings-category?view=vs-2022)
109109
* [Extension Sample](https://github.com/microsoft/VSSDK-Extensibility-Samples/tree/master/Options)
110110
* [Offroad Debugging](https://github.com/Microsoft/MIEngine/wiki/Offroad-Debugging-of-.NET-Core-on-Linux---OSX-from-Visual-Studio)
111+
112+
113+
_Copyright 2024 Xeno Innovations, Inc._

release-notes.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@
44

55
This document contains the release information for the project.
66

7+
### 2.2.0
8+
9+
* Fixed: Support VS v17.9 (#79)
10+
* Update: SSH.NET to v2023.0.1
11+
12+
### 2.1.1
13+
14+
* Update: Version 2.1 and Code Housekeeping by @DamianSuess in #65
15+
* Update: GUI .NET 6 Sample NuGet packages by @DamianSuess in #68
16+
* Update: PR Template by @DamianSuess in #69
17+
* Update: Release build generator script by @DamianSuess in #70
18+
* Update: Quality control by @DamianSuess in #74
19+
* Update: Upgrade github actions by @DamianSuess in #75
20+
721
### 2.1
822

923
* Update: Code cleanup

src/VsLinuxDebugger/Core/Security/RsaSha256DigitalSignature.cs

Lines changed: 0 additions & 65 deletions
This file was deleted.

src/VsLinuxDebugger/Core/Security/RsaSha256Util.cs

Lines changed: 0 additions & 63 deletions
This file was deleted.

src/VsLinuxDebugger/Core/Security/RsaWithSha256SignatureKey.cs

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/VsLinuxDebugger/Core/SshTool.cs

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,15 @@
88
using Renci.SshNet.Common;
99
using SharpCompress.Common;
1010
using SharpCompress.Writers;
11-
using VsLinuxDebugger.Core.Security;
1211

1312
namespace VsLinuxDebugger.Core
1413
{
1514
public class SshTool : IDisposable
1615
{
1716
private readonly string _tarGzFileName = "vsldBuildContents.tar.gz";
1817

19-
private bool _isConnected = false;
2018
private SshConnectionInfo _info;
19+
private bool _isConnected = false;
2120
private ScpClient _scp;
2221
private SftpClient _sftp;
2322
private SshClient _ssh;
@@ -157,22 +156,25 @@ public async Task CleanFolderAsync(string path)
157156
public async Task<bool> ConnectAsync()
158157
{
159158
PrivateKeyFile keyFile = null;
160-
ConnectionInfo conn = null;
159+
ConnectionInfo connInfo = null;
161160
try
162161
{
163162
if (_info.PrivateKeyEnabled)
164163
{
164+
Logger.Output($"SSH configuring private key connection...");
165+
165166
if (string.IsNullOrEmpty(_info.PrivateKeyPassword))
166167
keyFile = new PrivateKeyFile(_info.PrivateKeyPath);
167168
else
168169
keyFile = new PrivateKeyFile(_info.PrivateKeyPath, _info.PrivateKeyPassword);
169170

171+
/**
170172
// adds rsa-sha2-256
171173
RsaSha256Util.ConvertToKeyWithSha256Signature(keyFile);
172174
var authenticationMethodRsa = new PrivateKeyAuthenticationMethod(_info.UserName, keyFile);
173-
conn = new ConnectionInfo(_info.Host, _info.Port, _info.UserName, authenticationMethodRsa);
174-
RsaSha256Util.SetupConnection(conn);
175-
175+
connInfo = new ConnectionInfo(_info.Host, _info.Port, _info.UserName, authenticationMethodRsa);
176+
RsaSha256Util.SetupConnection(connInfo);
177+
*/
176178
}
177179
}
178180
catch (Exception ex)
@@ -184,10 +186,10 @@ public async Task<bool> ConnectAsync()
184186

185187
try
186188
{
187-
if (_info.PrivateKeyEnabled && File.Exists(_info.PrivateKeyPath))
188-
_ssh = new SshClient(conn);
189-
else
190-
_ssh = new SshClient(_info.Host, _info.Port, _info.UserName, _info.UserPass);
189+
Logger.Output($"SSH connecting...");
190+
_ssh = (_info.PrivateKeyEnabled && File.Exists(_info.PrivateKeyPath))
191+
? new SshClient(_info.Host, _info.Port, _info.UserName, keyFile)
192+
: new SshClient(_info.Host, _info.Port, _info.UserName, _info.UserPass);
191193

192194
await Task.Run(() => _ssh.Connect());
193195
}
@@ -199,20 +201,17 @@ public async Task<bool> ConnectAsync()
199201

200202
try
201203
{
202-
if (_info.PrivateKeyEnabled && File.Exists(_info.PrivateKeyPath))
203-
_sftp = new SftpClient(conn);
204-
else
205-
_sftp = new SftpClient(_info.Host, _info.Port, _info.UserName, _info.UserPass);
204+
_sftp = (_info.PrivateKeyEnabled && File.Exists(_info.PrivateKeyPath))
205+
? new SftpClient(connInfo)
206+
: new SftpClient(_info.Host, _info.Port, _info.UserName, _info.UserPass);
206207

207208
_sftp.Connect();
208-
209209
}
210210
catch (Exception)
211211
{
212-
if (_info.PrivateKeyEnabled && File.Exists(_info.PrivateKeyPath))
213-
_scp = new ScpClient(conn);
214-
else
215-
_scp = new ScpClient(_info.Host, _info.Port, _info.UserName, _info.UserPass);
212+
_scp = (_info.PrivateKeyEnabled && File.Exists(_info.PrivateKeyPath))
213+
? new ScpClient(connInfo)
214+
: new ScpClient(_info.Host, _info.Port, _info.UserName, _info.UserPass);
216215

217216
_scp.Connect();
218217
}

src/VsLinuxDebugger/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Reflection;
2-
using System.Runtime.CompilerServices;
32
using System.Runtime.InteropServices;
43

54
// General Information about an assembly is controlled through the following
@@ -10,7 +9,7 @@
109
[assembly: AssemblyConfiguration("")]
1110
[assembly: AssemblyCompany("Xeno Innovations, Inc.")]
1211
[assembly: AssemblyProduct("VS Linux Debugger")]
13-
[assembly: AssemblyCopyright("Copyright 2022-2023 Xeno Innovations, Inc.")]
12+
[assembly: AssemblyCopyright("Copyright 2022-2024 Xeno Innovations, Inc.")]
1413
[assembly: AssemblyTrademark("")]
1514
[assembly: AssemblyCulture("")]
1615

@@ -29,5 +28,5 @@
2928
// You can specify all the values or you can default the Build and Revision Numbers
3029
// by using the '*' as shown below:
3130
// [assembly: AssemblyVersion("1.0.*")]
32-
[assembly: AssemblyVersion("2.1.1.3")]
33-
[assembly: AssemblyFileVersion("2.1.1.3")]
31+
[assembly: AssemblyVersion("2.2.0.0")]
32+
[assembly: AssemblyFileVersion("2.2.0.0")]

src/VsLinuxDebugger/VsLinuxDebugger.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@
5353
<Compile Include="Core\LinuxPath.cs" />
5454
<Compile Include="Core\RemoteDebugger.cs" />
5555
<Compile Include="Core\LaunchBuilder.cs" />
56-
<Compile Include="Core\Security\RsaSha256DigitalSignature.cs" />
57-
<Compile Include="Core\Security\RsaSha256Util.cs" />
58-
<Compile Include="Core\Security\RsaWithSha256SignatureKey.cs" />
5956
<Compile Include="Core\SshConnectionInfo.cs" />
6057
<Compile Include="Core\Remote\Configuration.cs" />
6158
<Compile Include="Core\Remote\Launch.cs" />
@@ -104,7 +101,7 @@
104101
<Version>0.30.1</Version>
105102
</PackageReference>
106103
<PackageReference Include="SSH.NET">
107-
<Version>2020.0.2</Version>
104+
<Version>2023.0.1</Version>
108105
</PackageReference>
109106
<PackageReference Include="System.Text.Json">
110107
<Version>6.0.2</Version>

src/VsLinuxDebugger/source.extension.vsixmanifest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
55
<Metadata>
66
<Identity Id="VsLinuxDebugger.4d7bf4de-5015-4e24-92c0-7f9f3397b2da"
7-
Version="2.1.1"
7+
Version="2.2.0"
88
Language="en-US"
99
Publisher="Suess Labs" />
1010
<DisplayName>VS Linux Debugger</DisplayName>
@@ -14,7 +14,7 @@
1414
<GettingStartedGuide>..\..\readme.md</GettingStartedGuide>
1515
<ReleaseNotes>..\..\release-notes.md</ReleaseNotes>
1616
<Icon>Resources\TuxDebug.png</Icon>
17-
<Tags>debug; build; remote debug; vsdbg; linux; xamarin; rpi; rpi4; remotedebug; remote; debugger; linux debug; net6; dotnet; raspberry pi; ubuntu;</Tags>
17+
<Tags>debug; build; remote debug; vsdbg; linux; xamarin; rpi; rpi4; remotedebug; remote; debugger; linux debug; net6; dotnet; raspberry pi; ubuntu; suess; suess-labs; xeno-innovations</Tags>
1818
</Metadata>
1919
<Installation>
2020
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0, 18.0)">

0 commit comments

Comments
 (0)