Skip to content

Commit 452c1a2

Browse files
authoredMay 22, 2024··
dotnet pack in CI (#1400)
* dotnet pack in CI and delete the old build script * Update appveyor.yml
1 parent b09b4f5 commit 452c1a2

File tree

7 files changed

+21
-247
lines changed

7 files changed

+21
-247
lines changed
 

‎Renci.SshNet.sln

+3-10
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.5.33326.253
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{2D6CAE62-D053-476F-9BDD-2B1F27FA9C5D}"
7-
EndProject
8-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sandcastle", "sandcastle", "{A6C3FFD3-16A5-44D3-8C1F-3613D6DD17D1}"
9-
ProjectSection(SolutionItems) = preProject
10-
build\sandcastle\SSH.NET.shfbproj = build\sandcastle\SSH.NET.shfbproj
11-
EndProjectSection
12-
EndProject
136
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Renci.SshNet", "src\Renci.SshNet\Renci.SshNet.csproj", "{2F5F8C90-0BD1-424F-997C-7BC6280919D1}"
147
EndProject
158
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{04E8CC26-116E-4116-9558-7ED542548E70}"
@@ -19,9 +12,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1912
.gitignore = .gitignore
2013
appveyor.yml = appveyor.yml
2114
CODEOWNERS = CODEOWNERS
15+
CONTRIBUTING.md = CONTRIBUTING.md
2216
Directory.Build.props = Directory.Build.props
2317
global.json = global.json
2418
LICENSE = LICENSE
19+
nuget.config = nuget.config
2520
README.md = README.md
2621
stylecop.json = stylecop.json
2722
THIRD-PARTY-NOTICES.TXT = THIRD-PARTY-NOTICES.TXT
@@ -84,7 +79,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Renci.SshNet.Benchmarks", "
8479
EndProject
8580
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Renci.SshNet.IntegrationBenchmarks", "test\Renci.SshNet.IntegrationBenchmarks\Renci.SshNet.IntegrationBenchmarks.csproj", "{6DFC1807-3F44-4302-A302-43F7D887C4E0}"
8681
EndProject
87-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Renci.SshNet.AotCompatibilityTestApp", "test\Renci.SshNet.AotCompatibilityTestApp\Renci.SshNet.AotCompatibilityTestApp.csproj", "{F2E3FC50-4EF4-488C-B3D2-C45E99898D8B}"
82+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Renci.SshNet.AotCompatibilityTestApp", "test\Renci.SshNet.AotCompatibilityTestApp\Renci.SshNet.AotCompatibilityTestApp.csproj", "{F2E3FC50-4EF4-488C-B3D2-C45E99898D8B}"
8883
EndProject
8984
Global
9085
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -239,8 +234,6 @@ Global
239234
HideSolutionNode = FALSE
240235
EndGlobalSection
241236
GlobalSection(NestedProjects) = preSolution
242-
{2D6CAE62-D053-476F-9BDD-2B1F27FA9C5D} = {04E8CC26-116E-4116-9558-7ED542548E70}
243-
{A6C3FFD3-16A5-44D3-8C1F-3613D6DD17D1} = {2D6CAE62-D053-476F-9BDD-2B1F27FA9C5D}
244237
{D21A4D03-0AC2-4613-BB6D-74D2D16A72CC} = {04E8CC26-116E-4116-9558-7ED542548E70}
245238
{2F4155AA-750A-4D33-B2E6-ED06660016CE} = {04E8CC26-116E-4116-9558-7ED542548E70}
246239
{47CAF831-32E1-49AD-8E24-6A8732CC2F35} = {2F4155AA-750A-4D33-B2E6-ED06660016CE}

‎appveyor.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ for:
4343
- echo build
4444
- dotnet build Renci.SshNet.sln -c Debug
4545
- dotnet publish -c Release -r win-x64 /warnaserror .\test\Renci.SshNet.AotCompatibilityTestApp\
46+
- dotnet pack -c Release
4647

4748
test_script:
4849
- ps: echo "Run unit tests for .NET 8.0"
@@ -52,4 +53,7 @@ for:
5253

5354
artifacts:
5455
- path: artifacts
55-
name: artifacts
56+
name: TestResults
57+
58+
- path: src/**/*.nupkg
59+
- path: src/**/*.snupkg

‎build/build.proj

-163
This file was deleted.

‎build/sandcastle/SSH.NET.shfbproj

-67
This file was deleted.

‎nuget.config

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<clear />
5+
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
6+
</packageSources>
7+
</configuration>

‎src/.nuget/NuGet.Config

-6
This file was deleted.

‎src/Renci.SshNet/Renci.SshNet.csproj

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
<PackageReleaseNotes>https://github.com/sshnet/SSH.NET/releases/tag/$(Version)</PackageReleaseNotes>
2323
<IncludeSymbols>True</IncludeSymbols>
2424
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
25+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
26+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
27+
</PropertyGroup>
28+
29+
<PropertyGroup Condition="'$(CI)' != ''">
30+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
2531
</PropertyGroup>
2632

2733
<PropertyGroup Condition=" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0')) ">

0 commit comments

Comments
 (0)
Please sign in to comment.