Skip to content

Commit 5f6c3b0

Browse files
committed
Fix SL build.
1 parent 13fff36 commit 5f6c3b0

File tree

2 files changed

+72
-1
lines changed

2 files changed

+72
-1
lines changed

build/sandcastle/new.shfbproj

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<!-- The configuration and platform will be used to determine which assemblies to include from solution and
5+
project documentation sources -->
6+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
7+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
8+
<SchemaVersion>2.0</SchemaVersion>
9+
<ProjectGuid>{6c35cd41-3f6e-47c1-a805-1aab0ac88b36}</ProjectGuid>
10+
<SHFBSchemaVersion>2015.6.5.0</SHFBSchemaVersion>
11+
<!-- AssemblyName, Name, and RootNamespace are not used by SHFB but Visual Studio adds them anyway -->
12+
<AssemblyName>Documentation</AssemblyName>
13+
<RootNamespace>Documentation</RootNamespace>
14+
<Name>Documentation</Name>
15+
<!-- SHFB properties -->
16+
<FrameworkVersion>.NET Framework 4.0</FrameworkVersion>
17+
<OutputPath>D:\development\SSH.NET\build\target\help\</OutputPath>
18+
<HtmlHelpName>Documentation</HtmlHelpName>
19+
<Language>en-US</Language>
20+
<SaveComponentCacheCapacity>100</SaveComponentCacheCapacity>
21+
<BuildAssemblerVerbosity>OnlyWarningsAndErrors</BuildAssemblerVerbosity>
22+
<HelpFileFormat>Markdown</HelpFileFormat>
23+
<IndentHtml>False</IndentHtml>
24+
<KeepLogFile>False</KeepLogFile>
25+
<DisableCodeBlockComponent>False</DisableCodeBlockComponent>
26+
<CleanIntermediates>True</CleanIntermediates>
27+
<DocumentationSources>
28+
<DocumentationSource sourceFile="D:\development\SSH.NET\src\Renci.SshNet\bin\Debug\Renci.SshNet.dll" />
29+
<DocumentationSource sourceFile="D:\development\SSH.NET\src\Renci.SshNet\bin\Debug\Renci.SshNet.xml" /></DocumentationSources>
30+
<HelpFileVersion>1.0.0.0</HelpFileVersion>
31+
<MaximumGroupParts>2</MaximumGroupParts>
32+
<NamespaceGrouping>False</NamespaceGrouping>
33+
<SyntaxFilters>Standard</SyntaxFilters>
34+
<SdkLinkTarget>Blank</SdkLinkTarget>
35+
<RootNamespaceContainer>False</RootNamespaceContainer>
36+
<PresentationStyle>Markdown</PresentationStyle>
37+
<Preliminary>False</Preliminary>
38+
<NamingMethod>Guid</NamingMethod>
39+
<HelpTitle>A Sandcastle Documented Class Library</HelpTitle>
40+
<ContentPlacement>AboveNamespaces</ContentPlacement>
41+
</PropertyGroup>
42+
<!-- There are no properties for these groups. AnyCPU needs to appear in order for Visual Studio to perform
43+
the build. The others are optional common platform types that may appear. -->
44+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
45+
</PropertyGroup>
46+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
47+
</PropertyGroup>
48+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
49+
</PropertyGroup>
50+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
51+
</PropertyGroup>
52+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
53+
</PropertyGroup>
54+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
55+
</PropertyGroup>
56+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|Win32' ">
57+
</PropertyGroup>
58+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|Win32' ">
59+
</PropertyGroup>
60+
<!-- Import the SHFB build targets -->
61+
<Import Project="$(SHFBROOT)\SandcastleHelpFileBuilder.targets" />
62+
<!-- The pre-build and post-build event properties must appear *after* the targets file import in order to be
63+
evaluated correctly. -->
64+
<PropertyGroup>
65+
<PreBuildEvent>
66+
</PreBuildEvent>
67+
<PostBuildEvent>
68+
</PostBuildEvent>
69+
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
70+
</PropertyGroup>
71+
</Project>

src/Renci.SshNet/ForwardedPortDynamic.NET.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ private static string GetSocks5Host(int addressType, Socket socket, TimeSpan tim
493493
return null;
494494
}
495495

496-
var hostName = SshData.Ascii.GetString(addressBuffer);
496+
var hostName = SshData.Ascii.GetString(addressBuffer, 0, addressBuffer.Length);
497497
return hostName;
498498
}
499499
case 0x04: // IPv6

0 commit comments

Comments
 (0)