Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build

on:
push:
paths:
- '.github/workflows/build.yml'
- 'src/**'
workflow_dispatch:
inputs:
publish:
description: 'Publish package'
default: false
required: false
type: boolean

jobs:
build:
env:
BUILD_CONFIG: release
name: Build
runs-on: ubuntu-latest
steps:

- name: Check out repository
uses: actions/checkout@v3

- name: Set up .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build -c ${{ env.BUILD_CONFIG }} --no-restore -p:ContinuousIntegrationBuild=true

#- name: Test
# run: dotnet test -c ${{ env.BUILD_CONFIG }} --no-restore

- name: Publish
if: ${{ inputs.publish }}
run: |
dotnet pack -c ${{ env.BUILD_CONFIG }} --no-build
dotnet nuget push build_output/packages/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
220 changes: 41 additions & 179 deletions DotNetty.sln

Large diffs are not rendered by default.

24 changes: 18 additions & 6 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,31 @@
<Configurations>Debug;Release;Package</Configurations>
<Platforms>AnyCPU</Platforms>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<DebugType Condition="'$(Configuration)'=='Release'">pdbonly</DebugType>
<!--<DebugType Condition="'$(Configuration)'=='Release'">pdbonly</DebugType>
<DebugSymbols>True</DebugSymbols>
<Deterministic>true</Deterministic>
<Deterministic>true</Deterministic>-->

<!-- Package Settings -->
<DebugType Condition="'$(Configuration)'=='Package'">pdbonly</DebugType>
<Optimize Condition="'$(Configuration)'=='Package'">true</Optimize>
<PackageOutputPath>$(SolutionDir)build_output\packages</PackageOutputPath>
<GeneratePackageOnBuild Condition="'$(Configuration)'=='Package'">True</GeneratePackageOnBuild>
<IncludeSymbols>true</IncludeSymbols>
<PackageVersion>0.7.6</PackageVersion>

<PackageVersion>1.0.2.076</PackageVersion>
<Version>$(PackageVersion)</Version>
</PropertyGroup>


<PropertyGroup Label="Nethermind">
<Authors>Nethermind, Microsoft</Authors>
<Copyright>Demerzel Solutions Limited, Microsoft Corporation</Copyright>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/nethermindeth/dotnetty</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/nethermindeth/dotnetty</RepositoryUrl>
<RequireLicenseAcceptance>true</RequireLicenseAcceptance>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

</Project>
23 changes: 17 additions & 6 deletions src/DotNetty.Buffers/DotNetty.Buffers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<PropertyGroup Label="NuGet">
<TargetFrameworks>netstandard2.0;net472;net5.0;net6.0</TargetFrameworks>
<IsPackable>true</IsPackable>
<Description>Buffer management in DotNetty</Description>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<!--<Description>Buffer management in DotNetty</Description>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>-->
<AssemblyTitle>DotNetty: buffer management</AssemblyTitle>
<NeutralLanguage>en-US</NeutralLanguage>
<VersionPrefix>0.7.6</VersionPrefix>
<Authors>Microsoft</Authors>
<!--<VersionPrefix>0.7.6</VersionPrefix>
<Authors>Microsoft</Authors>-->
<NoWarn>$(NoWarn);CS1591</NoWarn>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
Expand All @@ -16,18 +16,29 @@
<AssemblyOriginatorKeyFile>../../DotNetty.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<PackageId>DotNetty.Buffers</PackageId>
<!--<PackageId>DotNetty.Buffers</PackageId>
<PackageTags>socket;tcp;protocol;netty;dotnetty;network</PackageTags>
<PackageProjectUrl>https://github.com/Azure/DotNetty/</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RequireLicenseAcceptance>true</RequireLicenseAcceptance>
<RepositoryUrl>https://github.com/Azure/DotNetty/</RepositoryUrl>
<RepositoryUrl>https://github.com/Azure/DotNetty/</RepositoryUrl>-->
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard2.0' ">2.0.3</NetStandardImplicitPackageVersion>
</PropertyGroup>

<PropertyGroup>
<Description>Buffer management in DotNetty</Description>
<PackageId>Nethermind.DotNetty.Buffers</PackageId>
<PackageTags>socket tcp protocol netty dotnetty network</PackageTags>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\shared\SharedAssemblyInfo.cs" Link="Properties\SharedAssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="5.0.0" />
</ItemGroup>
<ItemGroup>
Expand Down
23 changes: 17 additions & 6 deletions src/DotNetty.Codecs.Http/DotNetty.Codecs.Http.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<PropertyGroup Label="NuGet">
<TargetFrameworks>netstandard2.0;net472;net5.0;net6.0</TargetFrameworks>
<IsPackable>true</IsPackable>
<PackageId>DotNetty.Codecs.Http</PackageId>
<!--<PackageId>DotNetty.Codecs.Http</PackageId>
<Description>Http codec for DotNetty</Description>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>-->
<AssemblyTitle>DotNetty: Http codec</AssemblyTitle>
<NeutralLanguage>en-US</NeutralLanguage>
<VersionPrefix>0.7.6</VersionPrefix>
<Authors>Microsoft</Authors>
<!--<VersionPrefix>0.7.6</VersionPrefix>
<Authors>Microsoft</Authors>-->
<NoWarn>$(NoWarn);CS1591</NoWarn>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
Expand All @@ -18,18 +18,29 @@
<AssemblyOriginatorKeyFile>../../DotNetty.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<PackageTags>socket;tcp;protocol;netty;dotnetty;network;http</PackageTags>
<!--<PackageTags>socket;tcp;protocol;netty;dotnetty;network;http</PackageTags>
<PackageProjectUrl>https://github.com/Azure/DotNetty/</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RequireLicenseAcceptance>true</RequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/Azure/DotNetty/</RepositoryUrl>
<RepositoryUrl>https://github.com/Azure/DotNetty/</RepositoryUrl>-->
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard2.0' ">2.0.3</NetStandardImplicitPackageVersion>
</PropertyGroup>

<PropertyGroup>
<Description>Http codec for DotNetty</Description>
<PackageId>Nethermind.DotNetty.Codecs.Http</PackageId>
<PackageTags>socket tcp protocol netty dotnetty network http</PackageTags>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\shared\SharedAssemblyInfo.cs" Link="Properties\SharedAssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="5.0.0" />
</ItemGroup>
<ItemGroup>
Expand Down
29 changes: 22 additions & 7 deletions src/DotNetty.Codecs.Mqtt/DotNetty.Codecs.Mqtt.csproj
Original file line number Diff line number Diff line change
@@ -1,32 +1,47 @@
<?xml version="1.0" encoding="utf-8"?><Project Sdk="Microsoft.NET.Sdk">
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Label="NuGet">
<TargetFrameworks>netstandard2.0;net472;net5.0;net6.0</TargetFrameworks>
<IsPackable>true</IsPackable>
<PackageId>DotNetty.Codecs.Mqtt</PackageId>
<!--<PackageId>DotNetty.Codecs.Mqtt</PackageId>
<Description>MQTT codec for DotNetty</Description>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>-->
<AssemblyTitle>DotNetty: MQTT codec</AssemblyTitle>
<NeutralLanguage>en-US</NeutralLanguage>
<VersionPrefix>0.7.6</VersionPrefix>
<Authors>Microsoft</Authors>
<!--<VersionPrefix>0.7.6</VersionPrefix>
<Authors>Microsoft</Authors>-->
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>DotNetty.Codecs.Mqtt</AssemblyName>
<AssemblyOriginatorKeyFile>../../DotNetty.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<PackageTags>socket;tcp;protocol;netty;dotnetty;network;mqtt</PackageTags>
<!--<PackageTags>socket;tcp;protocol;netty;dotnetty;network;mqtt</PackageTags>
<PackageProjectUrl>https://github.com/Azure/DotNetty/</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RequireLicenseAcceptance>true</RequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/Azure/DotNetty/</RepositoryUrl>
<RepositoryUrl>https://github.com/Azure/DotNetty/</RepositoryUrl>-->
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard2.0' ">2.0.3</NetStandardImplicitPackageVersion>
</PropertyGroup>

<PropertyGroup>
<Description>MQTT codec for DotNetty</Description>
<PackageId>Nethermind.DotNetty.Codecs.Mqtt</PackageId>
<PackageTags>socket tcp protocol netty dotnetty network mqtt</PackageTags>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\shared\SharedAssemblyInfo.cs" Link="Properties\SharedAssemblyInfo.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DotNetty.Common\DotNetty.Common.csproj" />
<ProjectReference Include="..\DotNetty.Buffers\DotNetty.Buffers.csproj" />
Expand Down
26 changes: 19 additions & 7 deletions src/DotNetty.Codecs.Protobuf/DotNetty.Codecs.Protobuf.csproj
Original file line number Diff line number Diff line change
@@ -1,29 +1,37 @@
<?xml version="1.0" encoding="utf-8"?><Project Sdk="Microsoft.NET.Sdk">
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Label="NuGet">
<TargetFrameworks>netstandard2.0;net472;net5.0;net6.0</TargetFrameworks>
<IsPackable>true</IsPackable>
<PackageId>DotNetty.Codecs.Protobuf</PackageId>
<!--<PackageId>DotNetty.Codecs.Protobuf</PackageId>
<Description>Protobuf Proto3 codec for DotNetty</Description>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>-->
<AssemblyTitle>DotNetty: Protobuf Proto3 codec</AssemblyTitle>
<NeutralLanguage>en-US</NeutralLanguage>
<VersionPrefix>0.7.6</VersionPrefix>
<Authors>Microsoft</Authors>
<!--<VersionPrefix>0.7.6</VersionPrefix>
<Authors>Microsoft</Authors>-->
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>DotNetty.Codecs.Protobuf</AssemblyName>
<AssemblyOriginatorKeyFile>../../DotNetty.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<PackageTags>socket;tcp;protocol;netty;dotnetty;network;Protobuf</PackageTags>
<!--<PackageTags>socket;tcp;protocol;netty;dotnetty;network;Protobuf</PackageTags>
<PackageProjectUrl>https://github.com/Azure/DotNetty/</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RequireLicenseAcceptance>true</RequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/Azure/DotNetty/</RepositoryUrl>
<RepositoryUrl>https://github.com/Azure/DotNetty/</RepositoryUrl>-->
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard2.0' ">2.0.3</NetStandardImplicitPackageVersion>
</PropertyGroup>

<PropertyGroup>
<Description>Protobuf Proto3 codec for DotNetty</Description>
<PackageId>Nethermind.DotNetty.Codecs.Protobuf</PackageId>
<PackageTags>socket tcp protocol netty dotnetty network protobuf</PackageTags>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\shared\SharedAssemblyInfo.cs" Link="Properties\SharedAssemblyInfo.cs" />
</ItemGroup>
Expand All @@ -35,5 +43,9 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.19.4" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,35 @@
<PropertyGroup Label="NuGet">
<TargetFrameworks>netstandard2.0;net472;net5.0;net6.0</TargetFrameworks>
<IsPackable>true</IsPackable>
<PackageId>DotNetty.Codecs.ProtocolBuffers</PackageId>
<!--<PackageId>DotNetty.Codecs.ProtocolBuffers</PackageId>
<Description>ProtocolBuffers Proto2 codec for DotNetty</Description>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>-->
<AssemblyTitle>DotNetty: ProtocolBuffers Proto2 codec</AssemblyTitle>
<NeutralLanguage>en-US</NeutralLanguage>
<VersionPrefix>0.7.6</VersionPrefix>
<Authors>Microsoft</Authors>
<!--<VersionPrefix>0.7.6</VersionPrefix>
<Authors>Microsoft</Authors>-->
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>DotNetty.Codecs.ProtocolBuffers</AssemblyName>
<AssemblyOriginatorKeyFile>../../DotNetty.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<PackageTags>socket;tcp;protocol;netty;dotnetty;network;ProtocolBuffers</PackageTags>
<!--<PackageTags>socket;tcp;protocol;netty;dotnetty;network;ProtocolBuffers</PackageTags>
<PackageProjectUrl>https://github.com/Azure/DotNetty/</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RequireLicenseAcceptance>true</RequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/Azure/DotNetty/</RepositoryUrl>
<RepositoryUrl>https://github.com/Azure/DotNetty/</RepositoryUrl>-->
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard2.0' ">2.0.3</NetStandardImplicitPackageVersion>
</PropertyGroup>

<PropertyGroup>
<Description>ProtocolBuffers Proto2 codec for DotNetty</Description>
<PackageId>Nethermind.DotNetty.Codecs.ProtocolBuffers</PackageId>
<PackageTags>socket tcp protocol netty dotnetty network protocolbuffers</PackageTags>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\shared\SharedAssemblyInfo.cs" Link="Properties\SharedAssemblyInfo.cs" />
</ItemGroup>
Expand All @@ -36,5 +43,9 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Google.ProtocolBuffers" Version="2.4.1.555" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
26 changes: 20 additions & 6 deletions src/DotNetty.Codecs.Redis/DotNetty.Codecs.Redis.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,45 @@
<PropertyGroup Label="NuGet">
<TargetFrameworks>netstandard2.0;net472;net5.0;net6.0</TargetFrameworks>
<IsPackable>true</IsPackable>
<PackageId>DotNetty.Codecs.Redis</PackageId>
<!--<PackageId>DotNetty.Codecs.Redis</PackageId>
<Description>Redis codec for DotNetty</Description>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>-->
<AssemblyTitle>DotNetty: Redis codec</AssemblyTitle>
<NeutralLanguage>en-US</NeutralLanguage>
<VersionPrefix>0.7.6</VersionPrefix>
<Authors>Microsoft</Authors>
<!--<VersionPrefix>0.7.6</VersionPrefix>
<Authors>Microsoft</Authors>-->
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>DotNetty.Codecs.Redis</AssemblyName>
<AssemblyOriginatorKeyFile>../../DotNetty.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<PackageTags>socket;tcp;protocol;netty;dotnetty;network;redis</PackageTags>
<!--<PackageTags>socket;tcp;protocol;netty;dotnetty;network;redis</PackageTags>
<PackageProjectUrl>https://github.com/Azure/DotNetty/</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RequireLicenseAcceptance>true</RequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/Azure/DotNetty/</RepositoryUrl>
<RepositoryUrl>https://github.com/Azure/DotNetty/</RepositoryUrl>-->
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard2.0' ">2.0.3</NetStandardImplicitPackageVersion>
</PropertyGroup>

<PropertyGroup>
<Description>Redis codec for DotNetty</Description>
<PackageId>Nethermind.DotNetty.Codecs.Redis</PackageId>
<PackageTags>socket tcp protocol netty dotnetty network redis</PackageTags>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\shared\SharedAssemblyInfo.cs" Link="Properties\SharedAssemblyInfo.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DotNetty.Common\DotNetty.Common.csproj" />
<ProjectReference Include="..\DotNetty.Buffers\DotNetty.Buffers.csproj" />
Expand Down
Loading
Loading