Skip to content

Commit 2cdf1f0

Browse files
committed
moved files into main project and deleted remaining empty projects
dropped support for net6.0 and net7.0 added some helpers to fluentdocker playing around the idea of keeping the container on tests
1 parent 7029ca7 commit 2cdf1f0

File tree

36 files changed

+317
-322
lines changed

36 files changed

+317
-322
lines changed

Directory.Build.props

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
<Project>
22
<PropertyGroup>
3-
<TargetFrameworks>net48;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
3+
<TargetFrameworks>net48;net8.0</TargetFrameworks>
44
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
55
<Nullable>enable</Nullable>
66
<NullableContextOptions>enable</NullableContextOptions>
77
<ImplicitUsings>true</ImplicitUsings>
8-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
98
<LangVersion>preview</LangVersion>
109

1110
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
1211
<DebugType Condition=" '$(Configuration)' == 'Debug' ">full</DebugType>
1312
<DebugType Condition=" '$(Configuration)' == 'Release' ">pdbonly</DebugType>
1413

1514
<UseLinkBase>true</UseLinkBase>
16-
<GrpcPackageVersion>2.60.0</GrpcPackageVersion>
17-
<GrpcToolsPackageVersion>2.60.0</GrpcToolsPackageVersion>
1815
</PropertyGroup>
1916

2017
<ItemGroup Condition="'$(TargetFramework)' == 'net48'">

EventStore.Client.sln

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@ VisualStudioVersion = 15.0.26124.0
55
MinimumVisualStudioVersion = 15.0.26124.0
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{EA59C1CB-16DA-4F68-AF8A-642A969B4CF8}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventStore.Client.UserManagement", "src\EventStore.Client.UserManagement\EventStore.Client.UserManagement.csproj", "{D3744A86-DD35-4104-AAEE-84B79062C4A2}"
9-
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventStore.Client.Streams", "src\EventStore.Client.Streams\EventStore.Client.Streams.csproj", "{362C0CF9-81C9-400F-94C7-A8B190ECE94A}"
11-
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventStore.Client.Operations", "src\EventStore.Client.Operations\EventStore.Client.Operations.csproj", "{6EFB980F-C72C-40F1-9232-479BE5617580}"
13-
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventStore.Client.ProjectionManagement", "src\EventStore.Client.ProjectionManagement\EventStore.Client.ProjectionManagement.csproj", "{B275EF4B-80D3-4205-9C7A-337A2A2BD99C}"
15-
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventStore.Client.PersistentSubscriptions", "src\EventStore.Client.PersistentSubscriptions\EventStore.Client.PersistentSubscriptions.csproj", "{66FDEE78-836E-49F0-A4DD-BF7539C34E54}"
17-
EndProject
188
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventStore.Client", "src\EventStore.Client\EventStore.Client.csproj", "{8853D875-4A8E-450B-A1BE-9CEF8BEDABC3}"
199
EndProject
2010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{C51F2C69-45A9-4D0D-A708-4FC319D5D340}"
@@ -46,26 +36,6 @@ Global
4636
HideSolutionNode = FALSE
4737
EndGlobalSection
4838
GlobalSection(ProjectConfigurationPlatforms) = postSolution
49-
{D3744A86-DD35-4104-AAEE-84B79062C4A2}.Debug|x64.ActiveCfg = Debug|Any CPU
50-
{D3744A86-DD35-4104-AAEE-84B79062C4A2}.Debug|x64.Build.0 = Debug|Any CPU
51-
{D3744A86-DD35-4104-AAEE-84B79062C4A2}.Release|x64.ActiveCfg = Release|Any CPU
52-
{D3744A86-DD35-4104-AAEE-84B79062C4A2}.Release|x64.Build.0 = Release|Any CPU
53-
{362C0CF9-81C9-400F-94C7-A8B190ECE94A}.Debug|x64.ActiveCfg = Debug|Any CPU
54-
{362C0CF9-81C9-400F-94C7-A8B190ECE94A}.Debug|x64.Build.0 = Debug|Any CPU
55-
{362C0CF9-81C9-400F-94C7-A8B190ECE94A}.Release|x64.ActiveCfg = Release|Any CPU
56-
{362C0CF9-81C9-400F-94C7-A8B190ECE94A}.Release|x64.Build.0 = Release|Any CPU
57-
{6EFB980F-C72C-40F1-9232-479BE5617580}.Debug|x64.ActiveCfg = Debug|Any CPU
58-
{6EFB980F-C72C-40F1-9232-479BE5617580}.Debug|x64.Build.0 = Debug|Any CPU
59-
{6EFB980F-C72C-40F1-9232-479BE5617580}.Release|x64.ActiveCfg = Release|Any CPU
60-
{6EFB980F-C72C-40F1-9232-479BE5617580}.Release|x64.Build.0 = Release|Any CPU
61-
{B275EF4B-80D3-4205-9C7A-337A2A2BD99C}.Debug|x64.ActiveCfg = Debug|Any CPU
62-
{B275EF4B-80D3-4205-9C7A-337A2A2BD99C}.Debug|x64.Build.0 = Debug|Any CPU
63-
{B275EF4B-80D3-4205-9C7A-337A2A2BD99C}.Release|x64.ActiveCfg = Release|Any CPU
64-
{B275EF4B-80D3-4205-9C7A-337A2A2BD99C}.Release|x64.Build.0 = Release|Any CPU
65-
{66FDEE78-836E-49F0-A4DD-BF7539C34E54}.Debug|x64.ActiveCfg = Debug|Any CPU
66-
{66FDEE78-836E-49F0-A4DD-BF7539C34E54}.Debug|x64.Build.0 = Debug|Any CPU
67-
{66FDEE78-836E-49F0-A4DD-BF7539C34E54}.Release|x64.ActiveCfg = Release|Any CPU
68-
{66FDEE78-836E-49F0-A4DD-BF7539C34E54}.Release|x64.Build.0 = Release|Any CPU
6939
{8853D875-4A8E-450B-A1BE-9CEF8BEDABC3}.Debug|x64.ActiveCfg = Debug|Any CPU
7040
{8853D875-4A8E-450B-A1BE-9CEF8BEDABC3}.Debug|x64.Build.0 = Debug|Any CPU
7141
{8853D875-4A8E-450B-A1BE-9CEF8BEDABC3}.Release|x64.ActiveCfg = Release|Any CPU
@@ -108,11 +78,6 @@ Global
10878
{7D929D45-F1D9-462B-BE49-84BEC11D5039}.Release|x64.Build.0 = Release|Any CPU
10979
EndGlobalSection
11080
GlobalSection(NestedProjects) = preSolution
111-
{D3744A86-DD35-4104-AAEE-84B79062C4A2} = {EA59C1CB-16DA-4F68-AF8A-642A969B4CF8}
112-
{362C0CF9-81C9-400F-94C7-A8B190ECE94A} = {EA59C1CB-16DA-4F68-AF8A-642A969B4CF8}
113-
{6EFB980F-C72C-40F1-9232-479BE5617580} = {EA59C1CB-16DA-4F68-AF8A-642A969B4CF8}
114-
{B275EF4B-80D3-4205-9C7A-337A2A2BD99C} = {EA59C1CB-16DA-4F68-AF8A-642A969B4CF8}
115-
{66FDEE78-836E-49F0-A4DD-BF7539C34E54} = {EA59C1CB-16DA-4F68-AF8A-642A969B4CF8}
11681
{8853D875-4A8E-450B-A1BE-9CEF8BEDABC3} = {EA59C1CB-16DA-4F68-AF8A-642A969B4CF8}
11782
{8F8548D6-694C-4BAE-9EF3-A020140E04C7} = {C51F2C69-45A9-4D0D-A708-4FC319D5D340}
11883
{4BA2E05E-6B45-47C3-9001-8B039244ECA9} = {C51F2C69-45A9-4D0D-A708-4FC319D5D340}

src/Directory.Build.props

Lines changed: 16 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,20 @@
22
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
33

44
<PropertyGroup>
5+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
56
<RootNamespace>EventStore.Client</RootNamespace>
7+
<PackageId>Kurrent.Client</PackageId>
68
</PropertyGroup>
79

8-
<!-- Reference client base project -->
9-
<ItemGroup Condition="$(MSBuildProjectName) != 'EventStore.Client'">
10-
<ProjectReference Include="..\EventStore.Client\EventStore.Client.csproj" />
11-
</ItemGroup>
12-
13-
<!-- Set package id and generate proto file path-->
14-
<PropertyGroup Condition="$(MSBuildProjectName) != 'EventStore.Client' And $(MSBuildProjectName) != 'EventStore.Client.Extensions.OpenTelemetry'">
15-
<PackageIdSuffix>$(MSBuildProjectName.Remove(0,18))</PackageIdSuffix>
16-
<PackageId>EventStore.Client.Grpc.$(PackageIdSuffix)</PackageId>
17-
<ESProtoFilePath>../EventStore.Client/Common/protos/$(PackageIdSuffix.ToLower()).proto</ESProtoFilePath>
18-
</PropertyGroup>
19-
20-
<!-- Configure grpc services -->
21-
<ItemGroup Condition="$(MSBuildProjectName) != 'EventStore.Client' And $(MSBuildProjectName) != 'EventStore.Client.Extensions.OpenTelemetry'">
22-
<Protobuf Access="internal" Include="$(ESProtoFilePath)" GrpcServices="Client" Link="protos/%(FileName)%(Extension)" />
23-
</ItemGroup>
24-
2510
<PropertyGroup>
2611
<PackageIcon>ouro.png</PackageIcon>
2712
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
28-
<PackageProjectUrl>https://eventstore.com</PackageProjectUrl>
13+
<PackageProjectUrl>https://kurrent.io</PackageProjectUrl>
2914
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
3015
<PackageReleaseNotes>https://eventstore.com/blog/</PackageReleaseNotes>
31-
<PackageTags>eventstore client grpc</PackageTags>
32-
<Authors>Event Store Ltd</Authors>
33-
<Copyright>Copyright 2012-$([System.DateTime]::Today.Year.ToString()) Event Store Ltd</Copyright>
16+
<PackageTags>kurrent eventstore client grpc</PackageTags>
17+
<Authors>Kurrent Ltd</Authors>
18+
<Copyright>Copyright 2012-$([System.DateTime]::Today.Year.ToString()) Kurrent Ltd</Copyright>
3419
<MinVerTagPrefix>v</MinVerTagPrefix>
3520
</PropertyGroup>
3621

@@ -40,28 +25,25 @@
4025
</ItemGroup>
4126

4227
<ItemGroup>
43-
<PackageReference Include="ConfigureAwaitChecker.Analyzer" Version="4.0.0">
44-
<PrivateAssets>all</PrivateAssets>
45-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
46-
</PackageReference>
47-
<PackageReference Include="Grpc.Tools" Version="$(GrpcToolsPackageVersion)">
48-
<PrivateAssets>all</PrivateAssets>
49-
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
50-
</PackageReference>
28+
<!-- <PackageReference Include="ConfigureAwaitChecker.Analyzer" Version="5.0.0.1">-->
29+
<!-- <PrivateAssets>all</PrivateAssets>-->
30+
<!-- <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>-->
31+
<!-- </PackageReference>-->
32+
<!-- <PackageReference Include="Grpc.Tools" Version="$(GrpcToolsPackageVersion)">-->
33+
<!-- <PrivateAssets>all</PrivateAssets>-->
34+
<!-- <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>-->
35+
<!-- </PackageReference>-->
36+
<PackageReference Include="JetBrains.Annotations" Version="2024.3.0" PrivateAssets="All" />
37+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
5138
<PackageReference Include="MinVer" Version="3.0.0" PrivateAssets="All" />
5239
</ItemGroup>
5340

5441
<ItemGroup>
5542
<InternalsVisibleTo Include="$(ProjectName)" />
56-
<InternalsVisibleTo Include="$(ProjectName).Operations" />
5743
<InternalsVisibleTo Include="$(ProjectName).Operations.Tests" />
58-
<InternalsVisibleTo Include="$(ProjectName).PersistentSubscriptions" />
5944
<InternalsVisibleTo Include="$(ProjectName).PersistentSubscriptions.Tests" />
60-
<InternalsVisibleTo Include="$(ProjectName).ProjectionManagement" />
6145
<InternalsVisibleTo Include="$(ProjectName).ProjectionManagement.Tests" />
62-
<InternalsVisibleTo Include="$(ProjectName).Streams" />
6346
<InternalsVisibleTo Include="$(ProjectName).Streams.Tests" />
64-
<InternalsVisibleTo Include="$(ProjectName).UserManagement" />
6547
<InternalsVisibleTo Include="$(ProjectName).UserManagement.Tests" />
6648
<InternalsVisibleTo Include="$(ProjectName).Extensions.OpenTelemetry" />
6749
<InternalsVisibleTo Include="$(ProjectName).Tests" />

src/EventStore.Client.Extensions.OpenTelemetry/EventStore.Client.Extensions.OpenTelemetry.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@
1313
<PackageReference Include="OpenTelemetry.Api" Version="1.8.0" />
1414
</ItemGroup>
1515

16+
<ItemGroup>
17+
<ProjectReference Include="..\EventStore.Client\EventStore.Client.csproj" />
18+
</ItemGroup>
19+
1620
</Project>

src/EventStore.Client.Operations/EventStore.Client.Operations.csproj

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

src/EventStore.Client.PersistentSubscriptions/EventStore.Client.PersistentSubscriptions.csproj

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

src/EventStore.Client.ProjectionManagement/EventStore.Client.ProjectionManagement.csproj

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

src/EventStore.Client.Streams/EventStore.Client.Streams.csproj

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

src/EventStore.Client.UserManagement/EventStore.Client.UserManagement.csproj

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

src/EventStore.Client.UserManagement/EventStore.Client.UserManagement.csproj.DotSettings

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

src/EventStore.Client/Core/StreamIdentifier.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace EventStore.Client {
55
#pragma warning disable 1591
6-
public partial class StreamIdentifier {
6+
internal partial class StreamIdentifier {
77
private string? _cached;
88

99
public static implicit operator string?(StreamIdentifier? source) {
@@ -25,4 +25,4 @@ public partial class StreamIdentifier {
2525
public static implicit operator StreamIdentifier(string source) =>
2626
new() {StreamName = ByteString.CopyFromUtf8(source)};
2727
}
28-
}
28+
}

src/EventStore.Client/Core/Uuid.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ namespace EventStore.Client {
5151
/// </summary>
5252
/// <param name="dto"></param>
5353
/// <returns><see cref="Uuid"/></returns>
54-
public static Uuid FromDto(UUID dto) =>
54+
internal static Uuid FromDto(UUID dto) =>
5555
dto == null
5656
? throw new ArgumentNullException(nameof(dto))
5757
: dto.ValueCase switch {
@@ -106,7 +106,7 @@ private Uuid(long msb, long lsb) {
106106
/// Converts the <see cref="Uuid"/> to the gRPC wire format.
107107
/// </summary>
108108
/// <returns><see cref="UUID"/></returns>
109-
public UUID ToDto() =>
109+
internal UUID ToDto() =>
110110
new UUID {
111111
Structured = new UUID.Types.Structured {
112112
LeastSignificantBits = _lsb,
@@ -200,4 +200,4 @@ private bool TryWriteGuidBytes(Guid value, Span<byte> destination)
200200
#endif
201201
}
202202
}
203-
}
203+
}

src/EventStore.Client/EventStore.Client.csproj

Lines changed: 29 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,54 +7,46 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Google.Protobuf" Version="3.25.1"/>
11-
<PackageReference Include="Grpc.Net.Client" Version="$(GrpcPackageVersion)"/>
12-
<PackageReference Include="JetBrains.Annotations" Version="2023.3.0" />
13-
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0"/>
14-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
15-
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="8.0.1" />
10+
<PackageReference Include="Google.Protobuf" Version="3.29.1" />
11+
<PackageReference Include="Grpc.Net.Client" Version="2.67.0" />
12+
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0"/>
13+
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="9.0.0" />
1614
<PackageReference Include="System.Linq.Async" Version="6.0.1"/>
17-
<PackageReference Include="System.Text.Json" Version="8.0.5"/>
15+
16+
<PackageReference Include="Grpc.Tools" Version="2.68.1">
17+
<PrivateAssets>all</PrivateAssets>
18+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
19+
</PackageReference>
1820
</ItemGroup>
1921

2022
<ItemGroup>
21-
<!-- <Protobuf -->
22-
<!-- Include="..\EventStore.Client\Common\protos\shared.proto;..\EventStore.Client\Common\protos\status.proto;..\EventStore.Client\Common\protos\code.proto;"-->
23-
<!-- ProtoRoot="..\EventStore.Client\Common\protos"-->
24-
<!-- GrpcServices="Client"-->
25-
<!-- />-->
26-
27-
2823
<Protobuf
29-
Include="..\EventStore.Client\Common\protos\shared.proto;..\EventStore.Client\Common\protos\status.proto;..\EventStore.Client\Common\protos\code.proto;"
30-
ProtoRoot="..\EventStore.Client\Common\protos"
24+
ProtoRoot="Core/protos"
25+
Include="Core/protos/**/*.proto"
26+
Link="Core\protos\%(RecursiveDir)/%(FileName)%(Extension)"
3127
GrpcServices="Client"
28+
Access="internal"
3229
/>
33-
34-
<Protobuf Access="internal" Include="$(ESProtoFilePath)" GrpcServices="Client" Link="protos/%(FileName)%(Extension)" />
35-
36-
<Protobuf Include="..\EventStore.Client\Common\protos\gossip.proto" ProtoRoot="..\EventStore.Client\Common\protos" />
37-
<Protobuf Include="..\EventStore.Client\Common\protos\serverfeatures.proto" ProtoRoot="..\EventStore.Client\Common\protos" />
38-
<Protobuf Include="Core\Common\protos\code.proto">
39-
<Generator>MSBuild:Compile</Generator>
40-
</Protobuf>
41-
<Protobuf Include="Core\Common\protos\gossip.proto">
42-
<Generator>MSBuild:Compile</Generator>
43-
</Protobuf>
44-
<Protobuf Include="Core\Common\protos\serverfeatures.proto">
45-
<Generator>MSBuild:Compile</Generator>
46-
</Protobuf>
47-
<Protobuf Include="Core\Common\protos\shared.proto">
48-
<Generator>MSBuild:Compile</Generator>
49-
</Protobuf>
50-
<Protobuf Include="Core\Common\protos\status.proto">
51-
<Generator>MSBuild:Compile</Generator>
52-
</Protobuf>
30+
31+
<!-- -->
32+
<!-- <Protobuf-->
33+
<!-- Access="internal"-->
34+
<!-- Include="..\EventStore.Client\Common\protos\shared.proto;..\EventStore.Client\Common\protos\status.proto;..\EventStore.Client\Core\Common\protos\code.proto;"-->
35+
<!-- ProtoRoot="..\EventStore.Client\Core\Common\protos"-->
36+
<!-- GrpcServices="Client"-->
37+
<!-- />-->
5338
</ItemGroup>
5439

55-
40+
<!-- <ItemGroup Condition="'$(TargetFramework)' == 'net48'">-->
41+
<!-- <PackageReference Include="System.Net.Http.WinHttpHandler" Version="9.0.0"/>-->
42+
<!-- <PackageReference Include="System.Threading.Channels" Version="9.0.0"/>-->
43+
<!-- <PackageReference Include="BouncyCastle.Cryptography" Version="2.5.0" />-->
44+
<!-- </ItemGroup>-->
45+
5646
<ItemGroup Condition="'$(TargetFramework)' == 'net48'">
47+
<!-- <PackageReference Include="System.Net.Http" Version="4.3.4"/>-->
5748
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="8.0.0"/>
49+
<PackageReference Include="System.Text.Json" Version="8.0.5" />
5850
<PackageReference Include="System.Threading.Channels" Version="8.0.0"/>
5951
<PackageReference Include="BouncyCastle.Cryptography" Version="2.3.1" />
6052
</ItemGroup>

0 commit comments

Comments
 (0)