Skip to content

Commit 323b514

Browse files
scott-xuRob-Hague
andauthored
Merge nuspec and CommonAssemblyInfo into csproj (#1256)
* GeneratePackageOnBuild IncludeSymbols * Add packages to artifacts * Update src/Renci.SshNet/Renci.SshNet.csproj Co-authored-by: Rob Hague <[email protected]> * Update Renci.SshNet.csproj Co-authored-by: Rob Hague <[email protected]> * Delete build/nuget/SSH.NET.nuspec * Delete SSH.NET.nuspec from .sln file * Update Renci.SshNet.csproj * Update build.proj --------- Co-authored-by: Rob Hague <[email protected]>
1 parent 0371af9 commit 323b514

File tree

7 files changed

+37
-78
lines changed

7 files changed

+37
-78
lines changed

Renci.SshNet.sln

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ VisualStudioVersion = 17.5.33326.253
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{2D6CAE62-D053-476F-9BDD-2B1F27FA9C5D}"
77
EndProject
8-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "nuget", "nuget", "{94EE3919-19FA-4D9B-8DA9-249050B15232}"
9-
ProjectSection(SolutionItems) = preProject
10-
build\nuget\SSH.NET.nuspec = build\nuget\SSH.NET.nuspec
11-
EndProjectSection
12-
EndProject
138
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sandcastle", "sandcastle", "{A6C3FFD3-16A5-44D3-8C1F-3613D6DD17D1}"
149
ProjectSection(SolutionItems) = preProject
1510
build\sandcastle\SSH.NET.shfbproj = build\sandcastle\SSH.NET.shfbproj
@@ -224,7 +219,6 @@ Global
224219
EndGlobalSection
225220
GlobalSection(NestedProjects) = preSolution
226221
{2D6CAE62-D053-476F-9BDD-2B1F27FA9C5D} = {04E8CC26-116E-4116-9558-7ED542548E70}
227-
{94EE3919-19FA-4D9B-8DA9-249050B15232} = {2D6CAE62-D053-476F-9BDD-2B1F27FA9C5D}
228222
{A6C3FFD3-16A5-44D3-8C1F-3613D6DD17D1} = {2D6CAE62-D053-476F-9BDD-2B1F27FA9C5D}
229223
{D21A4D03-0AC2-4613-BB6D-74D2D16A72CC} = {04E8CC26-116E-4116-9558-7ED542548E70}
230224
{2F4155AA-750A-4D33-B2E6-ED06660016CE} = {04E8CC26-116E-4116-9558-7ED542548E70}

appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,7 @@ for:
5555
# - ps: Push-AppveyorArtifact artifacts/tcpdump.pcap
5656

5757
artifacts:
58+
- path: 'src\**\*.nupkg'
59+
- path: 'src\**\*.snupkg'
5860
- path: artifacts
5961
name: artifacts

build/build.proj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
</Target>
8484

8585
<Target Name="CreateNuGetPackage" DependsOnTargets="ValidatePackage;CheckNuGetPackageDirectory;CheckReleaseVersion">
86-
<Exec Command="$(NuGetExe) pack $(MSBuildThisFileDirectory)nuget\SSH.NET.nuspec -OutputDirectory &quot;$(MSBuildThisFileDirectory)target&quot; -Version &quot;$(ReleaseVersion)&quot; -Properties &quot;copyright=2012-$([System.DateTime]::Now.Year), RENCI&quot; -BasePath &quot;$(NuGetPackageDirectory)&quot; -NonInteractive"/>
86+
<Exec Command="dotnet pack $(MSBuildThisFileDirectory)..\src\Renci.SshNet\Renci.SshNet.csproj --no-build --output &quot;$(MSBuildThisFileDirectory)target&quot;"/>
8787
</Target>
8888

8989
<Target Name="GenerateHelpFile" DependsOnTargets="CheckReleaseVersion">
@@ -160,4 +160,4 @@
160160
</Code>
161161
</Task>
162162
</UsingTask>
163-
</Project>
163+
</Project>

build/nuget/SSH.NET.nuspec

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

src/Renci.SshNet/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
using System.Reflection;
1+
using System;
22
using System.Runtime.CompilerServices;
33
using System.Runtime.InteropServices;
44

5-
[assembly: AssemblyTitle("SSH.NET")]
5+
[assembly: CLSCompliant(false)]
66
[assembly: Guid("ad816c5e-6f13-4589-9f3e-59523f8b77a4")]
77
[assembly: InternalsVisibleTo("Renci.SshNet.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f9194e1eb66b7e2575aaee115ee1d27bc100920e7150e43992d6f668f9737de8b9c7ae892b62b8a36dd1d57929ff1541665d101dc476d6e02390846efae7e5186eec409710fdb596e3f83740afef0d4443055937649bc5a773175b61c57615dac0f0fd10f52b52fedf76c17474cc567b3f7a79de95dde842509fb39aaf69c6c2")]
88
[assembly: InternalsVisibleTo("Renci.SshNet.IntegrationTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f9194e1eb66b7e2575aaee115ee1d27bc100920e7150e43992d6f668f9737de8b9c7ae892b62b8a36dd1d57929ff1541665d101dc476d6e02390846efae7e5186eec409710fdb596e3f83740afef0d4443055937649bc5a773175b61c57615dac0f0fd10f52b52fedf76c17474cc567b3f7a79de95dde842509fb39aaf69c6c2")]

src/Renci.SshNet/Properties/CommonAssemblyInfo.cs

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

src/Renci.SshNet/Renci.SshNet.csproj

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
43
<AssemblyName>Renci.SshNet</AssemblyName>
4+
<Product>SSH.NET</Product>
5+
<AssemblyTitle>SSH.NET</AssemblyTitle>
56
<TargetFrameworks>net462;netstandard2.0;netstandard2.1;net6.0;net7.0;net8.0</TargetFrameworks>
67
</PropertyGroup>
78

9+
<PropertyGroup>
10+
<PackageId>SSH.NET</PackageId>
11+
<Title>SSH.NET</Title>
12+
<Version>2023.0.1</Version>
13+
<Description>SSH.NET is a Secure Shell (SSH) library for .NET, optimized for parallelism.</Description>
14+
<Copyright>Copyright © Renci 2010-$([System.DateTime]::UtcNow.Year)</Copyright>
15+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
16+
<Authors>Renci</Authors>
17+
<PackageIcon>SS-NET-icon-h500.png</PackageIcon>
18+
<PackageReadmeFile>README.md</PackageReadmeFile>
19+
<PackageTags>ssh; scp; sftp</PackageTags>
20+
<PackageReleaseNotes>https://github.com/sshnet/SSH.NET/releases/tag/$(Version)</PackageReleaseNotes>
21+
<IncludeSymbols>True</IncludeSymbols>
22+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
23+
</PropertyGroup>
24+
825
<PropertyGroup Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0')) ">
926
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
1027
<EnableSingleFileAnalyzer>true</EnableSingleFileAnalyzer>
@@ -22,4 +39,16 @@
2239
<ItemGroup Condition=" '$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'netstandard2.0' ">
2340
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="1.0.0" />
2441
</ItemGroup>
25-
</Project>
42+
43+
<ItemGroup>
44+
<None Include="..\..\images\logo\png\SS-NET-icon-h500.png">
45+
<Pack>True</Pack>
46+
<PackagePath>\</PackagePath>
47+
</None>
48+
<None Include="..\..\README.md">
49+
<Pack>True</Pack>
50+
<PackagePath>\</PackagePath>
51+
</None>
52+
</ItemGroup>
53+
54+
</Project>

0 commit comments

Comments
 (0)