Skip to content

Commit 16667a0

Browse files
committed
add build target to copy files to idempotency
1 parent b7f5ee9 commit 16667a0

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

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

-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<Description>Powertools for AWS Lambda (.NET) - Idempotency package.</Description>
77
<AssemblyName>AWS.Lambda.Powertools.Idempotency</AssemblyName>
88
<RootNamespace>AWS.Lambda.Powertools.Idempotency</RootNamespace>
9-
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);IncludeInOutput</TargetsForTfmSpecificBuildOutput>
109
</PropertyGroup>
1110

1211

@@ -18,10 +17,4 @@
1817
<ProjectReference Include="..\AWS.Lambda.Powertools.Common\AWS.Lambda.Powertools.Common.csproj" PrivateAssets="all" />
1918
<ProjectReference Include="..\AWS.Lambda.Powertools.JMESPath\AWS.Lambda.Powertools.JMESPath.csproj" PrivateAssets="all"/>
2019
</ItemGroup>
21-
22-
<Target Name="IncludeInOutput">
23-
<ItemGroup>
24-
<BuildOutputInPackage Include="$(OutputPath)\AWS.Lambda.Powertools.JMESPath.dll" />
25-
</ItemGroup>
26-
</Target>
2720
</Project>

libraries/src/Directory.Build.targets

+11
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,15 @@
1212
<Compile Remove="..\AWS.Lambda.Powertools.Common\obj\**" />
1313
</ItemGroup>
1414

15+
16+
<ItemGroup Condition="'$(MSBuildProjectName)' == 'AWS.Lambda.Powertools.Idempotency' AND '$(Configuration)'=='Release'">
17+
18+
<ProjectReference Remove="..\AWS.Lambda.Powertools.JMESPath\AWS.Lambda.Powertools.JMESPath.csproj" />
19+
20+
<Compile Include="..\AWS.Lambda.Powertools.JMESPath\**\*.cs">
21+
<Link>JMESPath\%(RecursiveDir)%(Filename)%(Extension)</Link>
22+
</Compile>
23+
<Compile Remove="..\AWS.Lambda.Powertools.JMESPath\obj\**" />
24+
</ItemGroup>
25+
1526
</Project>

0 commit comments

Comments
 (0)