Skip to content

Commit 8b5d9e8

Browse files
committed
fix the build
1 parent dc98ad1 commit 8b5d9e8

6 files changed

Lines changed: 78 additions & 13 deletions

File tree

Directory.Build.props

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<Project>
2+
<PropertyGroup>
3+
<LangVersion>12.0</LangVersion>
4+
<DotNetTargetFrameworks>net7.0;net8.0;net9.0</DotNetTargetFrameworks>
5+
<TargetFrameworks>$(DotNetTargetFrameworks)</TargetFrameworks>
6+
</PropertyGroup>
7+
<PropertyGroup>
8+
<MobileTargetFrameworks>net8.0-ios;net8.0-android;net8.0-macos;net8.0-tvos;net9.0-ios;net9.0-android;net9.0-macos;net9.0-tvos</MobileTargetFrameworks>
9+
</PropertyGroup>
10+
<PropertyGroup>
11+
<PackageProjectUrl>https://github.com/kerryjiang/supersocket</PackageProjectUrl>
12+
<RepositoryUrl>https://github.com/kerryjiang/SuperSocket.git</RepositoryUrl>
13+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
14+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
15+
<IncludeSymbols>true</IncludeSymbols>
16+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
17+
<IncludeSource>true</IncludeSource>
18+
<Authors>Kerry Jiang and other contributors</Authors>
19+
<Owners>Kerry Jiang</Owners>
20+
</PropertyGroup>
21+
<PropertyGroup Condition="'$(IncludeReleaseNotes)' == 'true'">
22+
<PackageReadmeFile>v$(PackageVersion).md</PackageReadmeFile>
23+
</PropertyGroup>
24+
<ItemGroup Condition="'$(IncludeReleaseNotes)' == 'true'">
25+
<None Include="../../releaseNotes/v$(PackageVersion).md" Pack="true" PackagePath="/" />
26+
</ItemGroup>
27+
<ItemGroup>
28+
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" />
29+
</ItemGroup>
30+
<ItemGroup Condition="$(IsPackable) != False AND '$(OutputType)' != 'Exe'">
31+
<Compile Include="..\..\InternalsVisibleTo.cs" />
32+
</ItemGroup>
33+
</Project>

Directory.Packages.props

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<Project>
2+
<PropertyGroup>
3+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
7+
<PackageVersion Include="SuperSocket.Client" Version="2.0.1" />
8+
<PackageVersion Include="SuperSocket.ProtoBase" Version="2.0.1" />
9+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
10+
<PackageVersion Include="xunit" Version="2.4.0" />
11+
<PackageVersion Include="xunit.runner.visualstudio" Version="2.4.0" />
12+
<PackageVersion Include="Microsoft.Extensions.Logging" Version="8.0.0" />
13+
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
14+
</ItemGroup>
15+
</Project>

InternalsVisibleTo.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
using System.Runtime.CompilerServices;
2+
3+
[assembly: InternalsVisibleTo("SuperSocket.MySQL.Test")]

SuperSocket.MySQL.sln

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{1AF31B65-8A1
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SuperSocket.MySQL", "src\SuperSocket.MySQL\SuperSocket.MySQL.csproj", "{8118B02B-CB59-4BB8-8382-8DBBBA33AF43}"
99
EndProject
10+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{0AB3BF05-4346-4AA6-1389-037BE0695223}"
11+
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SuperSocket.MySQL.Test", "tests\SuperSocket.MySQL.Test\SuperSocket.MySQL.Test.csproj", "{BB106962-A0E4-43DB-B948-179307DB8491}"
13+
EndProject
1014
Global
1115
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1216
Debug|Any CPU = Debug|Any CPU
@@ -16,9 +20,6 @@ Global
1620
Release|x64 = Release|x64
1721
Release|x86 = Release|x86
1822
EndGlobalSection
19-
GlobalSection(SolutionProperties) = preSolution
20-
HideSolutionNode = FALSE
21-
EndGlobalSection
2223
GlobalSection(ProjectConfigurationPlatforms) = postSolution
2324
{8118B02B-CB59-4BB8-8382-8DBBBA33AF43}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2425
{8118B02B-CB59-4BB8-8382-8DBBBA33AF43}.Debug|Any CPU.Build.0 = Debug|Any CPU
@@ -32,8 +33,24 @@ Global
3233
{8118B02B-CB59-4BB8-8382-8DBBBA33AF43}.Release|x64.Build.0 = Release|Any CPU
3334
{8118B02B-CB59-4BB8-8382-8DBBBA33AF43}.Release|x86.ActiveCfg = Release|Any CPU
3435
{8118B02B-CB59-4BB8-8382-8DBBBA33AF43}.Release|x86.Build.0 = Release|Any CPU
36+
{BB106962-A0E4-43DB-B948-179307DB8491}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
37+
{BB106962-A0E4-43DB-B948-179307DB8491}.Debug|Any CPU.Build.0 = Debug|Any CPU
38+
{BB106962-A0E4-43DB-B948-179307DB8491}.Debug|x64.ActiveCfg = Debug|Any CPU
39+
{BB106962-A0E4-43DB-B948-179307DB8491}.Debug|x64.Build.0 = Debug|Any CPU
40+
{BB106962-A0E4-43DB-B948-179307DB8491}.Debug|x86.ActiveCfg = Debug|Any CPU
41+
{BB106962-A0E4-43DB-B948-179307DB8491}.Debug|x86.Build.0 = Debug|Any CPU
42+
{BB106962-A0E4-43DB-B948-179307DB8491}.Release|Any CPU.ActiveCfg = Release|Any CPU
43+
{BB106962-A0E4-43DB-B948-179307DB8491}.Release|Any CPU.Build.0 = Release|Any CPU
44+
{BB106962-A0E4-43DB-B948-179307DB8491}.Release|x64.ActiveCfg = Release|Any CPU
45+
{BB106962-A0E4-43DB-B948-179307DB8491}.Release|x64.Build.0 = Release|Any CPU
46+
{BB106962-A0E4-43DB-B948-179307DB8491}.Release|x86.ActiveCfg = Release|Any CPU
47+
{BB106962-A0E4-43DB-B948-179307DB8491}.Release|x86.Build.0 = Release|Any CPU
48+
EndGlobalSection
49+
GlobalSection(SolutionProperties) = preSolution
50+
HideSolutionNode = FALSE
3551
EndGlobalSection
3652
GlobalSection(NestedProjects) = preSolution
3753
{8118B02B-CB59-4BB8-8382-8DBBBA33AF43} = {1AF31B65-8A12-4953-B98C-7A45D41E57CC}
54+
{BB106962-A0E4-43DB-B948-179307DB8491} = {0AB3BF05-4346-4AA6-1389-037BE0695223}
3855
EndGlobalSection
3956
EndGlobal
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<PropertyGroup>
3-
<TargetFrameworks>.net9</TargetFrameworks>
4-
</PropertyGroup>
52
<ItemGroup>
6-
<PackageReference Include="SuperSocket.Client" Version="2.0.1" />
7-
<PackageReference Include="SuperSocket.ProtoBase" Version="2.0.1" />
3+
<PackageReference Include="SuperSocket.Client" />
4+
<PackageReference Include="SuperSocket.ProtoBase" />
85
</ItemGroup>
96
</Project>

tests/SuperSocket.MySQL.Test/SuperSocket.MySQL.Test.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
10-
<PackageReference Include="xunit" Version="2.4.0" />
11-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
12-
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
13-
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
9+
<PackageReference Include="Microsoft.NET.Test.Sdk" />
10+
<PackageReference Include="xunit" />
11+
<PackageReference Include="xunit.runner.visualstudio" />
12+
<PackageReference Include="Microsoft.Extensions.Logging" />
13+
<PackageReference Include="Microsoft.Extensions.Logging.Console" />
1414
</ItemGroup>
1515
<ItemGroup>
1616
<ProjectReference Include="../../src/SuperSocket.MySQL/SuperSocket.MySQL.csproj" />

0 commit comments

Comments
 (0)