Skip to content

Commit 259d502

Browse files
authored
Merge pull request #844 from hjgraca/fix/revert-common-setup
chore: Revert Common copy and setup
2 parents 1a92768 + a49ee2b commit 259d502

File tree

8 files changed

+16
-21
lines changed

8 files changed

+16
-21
lines changed

libraries/src/AWS.Lambda.Powertools.BatchProcessing/AWS.Lambda.Powertools.BatchProcessing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
<PackageReference Include="Amazon.Lambda.DynamoDBEvents" />
1414
<PackageReference Include="Amazon.Lambda.KinesisEvents" />
1515
<PackageReference Include="Amazon.Lambda.SQSEvents" />
16-
<ProjectReference Include="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj"/>
16+
<ProjectReference Include="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj" Condition="'$(Configuration)'=='Debug'"/>
1717
</ItemGroup>
1818
</Project>

libraries/src/AWS.Lambda.Powertools.Idempotency/AWS.Lambda.Powertools.Idempotency.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<!-- More info https://learn.microsoft.com/en-us/nuget/consume-packages/central-package-management -->
1616
<PackageReference Include="Amazon.Lambda.Core"/>
1717
<PackageReference Include="AWSSDK.DynamoDBv2"/>
18-
<ProjectReference Include="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj"/>
18+
<ProjectReference Include="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj" Condition="'$(Configuration)'=='Debug'"/>
1919
<ProjectReference Include="..\AWS.Lambda.Powertools.JMESPath\AWS.Lambda.Powertools.JMESPath.csproj" Condition="'$(Configuration)'=='Debug'"/>
2020
</ItemGroup>
2121

libraries/src/AWS.Lambda.Powertools.Logging/AWS.Lambda.Powertools.Logging.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" />
1717
<PackageReference Include="Microsoft.Extensions.Logging" />
1818
<PackageReference Include="Microsoft.Extensions.Logging.Configuration" />
19-
<ProjectReference Include="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj"/>
19+
<ProjectReference Include="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj" Condition="'$(Configuration)'=='Debug'"/>
2020
</ItemGroup>
2121

2222
</Project>

libraries/src/AWS.Lambda.Powertools.Metrics/AWS.Lambda.Powertools.Metrics.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<ProjectReference Include="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj"/>
12+
<ProjectReference Include="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj" Condition="'$(Configuration)'=='Debug'"/>
1313
</ItemGroup>
1414

1515
<ItemGroup>

libraries/src/AWS.Lambda.Powertools.Parameters/AWS.Lambda.Powertools.Parameters.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<PackageReference Include="AWSSDK.SecretsManager" />
2121
<PackageReference Include="AWSSDK.SimpleSystemsManagement" />
2222
<PackageReference Include="Microsoft.Extensions.Configuration" />
23-
<ProjectReference Include="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj"/>
23+
<ProjectReference Include="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj" Condition="'$(Configuration)'=='Debug'"/>
2424
</ItemGroup>
2525

2626
</Project>

libraries/src/AWS.Lambda.Powertools.Tracing/AWS.Lambda.Powertools.Tracing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<PackageReference Include="AWSXRayRecorder.Core" />
1818
<PackageReference Include="AWSXRayRecorder.Handlers.AwsSdk" />
1919
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" />
20-
<ProjectReference Include="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj"/>
20+
<ProjectReference Include="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj" Condition="'$(Configuration)'=='Debug'"/>
2121
</ItemGroup>
2222

2323

libraries/src/Directory.Build.props

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,15 @@
3535

3636
<!-- Include Common files in projects that reference AWS.Lambda.Powertools.Common -->
3737
<!-- This is needed because of the way nuget expects dependencies to be nuget packages as well which is not what we want -->
38-
<Target Name="CopyCommonFilesAfterAspect"
39-
AfterTargets="AfterCompile"
40-
BeforeTargets="GenerateNuspec"
41-
Condition="'$(IncludeCommonFiles)' == 'true' AND'$(Configuration)'=='Release'">
42-
<ItemGroup>
43-
<ProjectReference Remove="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj"/>
44-
<PackageReference Include="AspectInjector"/>
38+
<ItemGroup Condition="'$(IncludeCommonFiles)' == 'true' AND '$(Configuration)'=='Release'">
39+
40+
<ProjectReference Remove="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj"/>
41+
<PackageReference Include="AspectInjector"/>
42+
<Compile Include="..\AWS.Lambda.Powertools.Common\**\*.cs">
43+
<Link>Common\%(RecursiveDir)%(Filename)%(Extension)</Link>
44+
</Compile>
45+
<Compile Remove="..\AWS.Lambda.Powertools.Common\obj\**"/>
46+
</ItemGroup>
4547

46-
<CommonSourceFiles Include="..\AWS.Lambda.Powertools.Common\**\*.cs"
47-
Exclude="..\AWS.Lambda.Powertools.Common\obj\**">
48-
<Link>Common\Common\</Link>
49-
</CommonSourceFiles>
50-
<Compile Include="@(CommonSourceFiles)" />
51-
</ItemGroup>
52-
</Target>
5348

5449
</Project>

libraries/tests/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
<IsPackable>false</IsPackable>
55
</PropertyGroup>
66
<ItemGroup>
7-
<ProjectReference Include="..\..\src\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj" />
7+
<ProjectReference Condition="'$(Configuration)'!='Release'" Include="..\..\src\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj" />
88
</ItemGroup>
99
</Project>

0 commit comments

Comments
 (0)