Skip to content

Commit a97bbb3

Browse files
committed
fix: update project files to include common references for Kafka consumers
1 parent 472e772 commit a97bbb3

File tree

3 files changed

+25
-13
lines changed

3 files changed

+25
-13
lines changed
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
<!--suppress MsbuildTargetFrameworkTagInspection -->
22
<Project Sdk="Microsoft.NET.Sdk">
33
<Import Project="../KafkaDependencies.props" />
4-
<PropertyGroup Condition="'$(Configuration)'=='Release'">
5-
<IncludeKafkaFiles>true</IncludeKafkaFiles>
6-
<DefineConstants>$(DefineConstants);KAFKA_AVRO</DefineConstants>
7-
</PropertyGroup>
4+
85
<PropertyGroup>
96
<PackageId>AWS.Lambda.Powertools.Kafka.Avro</PackageId>
107
<Description>Powertools for AWS Lambda (.NET) - Kafka Avro consumer package.</Description>
@@ -15,11 +12,20 @@
1512
<ImplicitUsings>enable</ImplicitUsings>
1613
<Nullable>enable</Nullable>
1714
</PropertyGroup>
15+
16+
<!-- Release: Use source file inclusion -->
17+
<PropertyGroup Condition="'$(Configuration)'=='Release'">
18+
<IncludeKafkaFiles>true</IncludeKafkaFiles>
19+
<DefineConstants>$(DefineConstants);KAFKA_AVRO</DefineConstants>
20+
</PropertyGroup>
21+
1822
<ItemGroup>
1923
<PackageReference Include="Apache.Avro"/>
2024
</ItemGroup>
25+
2126
<!-- Debug: Use project references -->
2227
<ItemGroup Condition="'$(Configuration)'=='Debug'">
2328
<ProjectReference Include="..\AWS.Lambda.Powertools.Kafka\AWS.Lambda.Powertools.Kafka.csproj"/>
29+
<ProjectReference Include="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj"/>
2430
</ItemGroup>
25-
</Project>
31+
</Project>
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
<!--suppress MsbuildTargetFrameworkTagInspection -->
22
<Project Sdk="Microsoft.NET.Sdk">
33
<Import Project="../KafkaDependencies.props" />
4-
<PropertyGroup Condition="'$(Configuration)'=='Release'">
5-
<IncludeKafkaFiles>true</IncludeKafkaFiles>
6-
<DefineConstants>$(DefineConstants);KAFKA_JSON</DefineConstants>
7-
</PropertyGroup>
84
<PropertyGroup>
95
<PackageId>AWS.Lambda.Powertools.Kafka.Json</PackageId>
106
<Description>Powertools for AWS Lambda (.NET) - Kafka Json consumer package.</Description>
@@ -16,8 +12,15 @@
1612
<Nullable>enable</Nullable>
1713
</PropertyGroup>
1814

15+
<!-- Release: Use source file inclusion -->
16+
<PropertyGroup Condition="'$(Configuration)'=='Release'">
17+
<IncludeKafkaFiles>true</IncludeKafkaFiles>
18+
<DefineConstants>$(DefineConstants);KAFKA_JSON</DefineConstants>
19+
</PropertyGroup>
20+
1921
<!-- Debug: Use project references -->
2022
<ItemGroup Condition="'$(Configuration)'=='Debug'">
2123
<ProjectReference Include="..\AWS.Lambda.Powertools.Kafka\AWS.Lambda.Powertools.Kafka.csproj"/>
24+
<ProjectReference Include="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj"/>
2225
</ItemGroup>
2326
</Project>
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
<!--suppress MsbuildTargetFrameworkTagInspection -->
22
<Project Sdk="Microsoft.NET.Sdk">
33
<Import Project="../KafkaDependencies.props" />
4-
<PropertyGroup Condition="'$(Configuration)'=='Release'">
5-
<IncludeKafkaFiles>true</IncludeKafkaFiles>
6-
<DefineConstants>$(DefineConstants);KAFKA_PROTOBUF</DefineConstants>
7-
</PropertyGroup>
84
<PropertyGroup>
95
<PackageId>AWS.Lambda.Powertools.Kafka.Protobuf</PackageId>
106
<Description>Powertools for AWS Lambda (.NET) - Kafka Protobuf consumer package.</Description>
@@ -15,6 +11,12 @@
1511
<ImplicitUsings>enable</ImplicitUsings>
1612
<Nullable>enable</Nullable>
1713
</PropertyGroup>
14+
15+
<!-- Release: Use source file inclusion -->
16+
<PropertyGroup Condition="'$(Configuration)'=='Release'">
17+
<IncludeKafkaFiles>true</IncludeKafkaFiles>
18+
<DefineConstants>$(DefineConstants);KAFKA_PROTOBUF</DefineConstants>
19+
</PropertyGroup>
1820

1921
<ItemGroup>
2022
<PackageReference Include="Google.Protobuf" />
@@ -23,6 +25,7 @@
2325
<!-- Debug: Use project references -->
2426
<ItemGroup Condition="'$(Configuration)'=='Debug'">
2527
<ProjectReference Include="..\AWS.Lambda.Powertools.Kafka\AWS.Lambda.Powertools.Kafka.csproj"/>
28+
<ProjectReference Include="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj"/>
2629
</ItemGroup>
2730

2831
</Project>

0 commit comments

Comments
 (0)