- Notifications
You must be signed in to change notification settings - Fork 488
/
Copy pathAmazon.Lambda.TestTool.csproj
80 lines (70 loc) · 3.64 KB
/
Amazon.Lambda.TestTool.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<ProjectSdk="Microsoft.NET.Sdk.Web">
<ImportProject="..\..\..\..\buildtools\common.props" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<Description>A tool to help debug and test your .NET AWS Lambda functions locally.</Description>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Product>AWS .NET Lambda Test Tool</Product>
<Copyright>Apache 2</Copyright>
<PackageTags>AWS;Amazon;Lambda</PackageTags>
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
<IsPackable>true</IsPackable>
<PackAsTool>true</PackAsTool>
<PackageId>Amazon.Lambda.TestTool</PackageId>
<ToolCommandName>dotnet-lambda-test-tool</ToolCommandName>
<Version>0.10.1</Version>
<NoWarn>NU5100</NoWarn>
<RollForward>Major</RollForward>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
<ItemGroupCondition="$(Configuration) == 'Release'">
<NoneInclude="$(OutputPath)\publish\wwwroot\"Pack="true"PackagePath="tools\net8.0\any\wwwroot"Visible="false" />
</ItemGroup>
<ItemGroup>
<PackageReferenceInclude="Amazon.Lambda.SQSEvents"Version="2.2.0" />
<PackageReferenceInclude="AWSSDK.Extensions.NETCore.Setup"Version="3.7.400" />
<PackageReferenceInclude="AWSSDK.Lambda"Version="3.7.411.17" />
<PackageReferenceInclude="AWSSDK.SQS"Version="3.7.400.109" />
<PackageReferenceInclude="Spectre.Console"Version="0.49.1" />
<PackageReferenceInclude="Spectre.Console.Cli"Version="0.49.1" />
<PackageReferenceInclude="Amazon.Lambda.APIGatewayEvents"Version="2.7.1" />
<PackageReferenceInclude="Microsoft.Extensions.FileProviders.Embedded"Version="8.0.11" />
<PackageReferenceInclude="BlazorMonaco"Version="3.2.0" />
</ItemGroup>
<TargetName="GetRuntimeSupportTargetFrameworks">
<ExecCommand="dotnet msbuild ../../../../Libraries/src/Amazon.Lambda.RuntimeSupport/Amazon.Lambda.RuntimeSupport.csproj --getProperty:TargetFrameworks"ConsoleToMSBuild="true">
<OutputTaskParameter="ConsoleOutput"PropertyName="RuntimeSupportTargetFrameworks" />
</Exec>
<ItemGroup>
<TempFrameworksInclude="$(RuntimeSupportTargetFrameworks.Split(';'))" />
<TargetFrameworksInclude="@(TempFrameworks)"Condition="'%(Identity)' != 'netstandard2.0'" />
</ItemGroup>
</Target>
<TargetName="PublishRuntimeSupportFiles"DependsOnTargets="GetRuntimeSupportTargetFrameworks"BeforeTargets="Build">
<ExecCommand="dotnet publish "$(MSBuildThisFileDirectory)../../../../Libraries/src/Amazon.Lambda.RuntimeSupport/Amazon.Lambda.RuntimeSupport.csproj" -c $(Configuration) -f %(TargetFrameworks.Identity) /p:ExecutableOutputType=true" />
</Target>
<TargetName="CopyRuntimeSupportFiles"DependsOnTargets="GetRuntimeSupportTargetFrameworks"BeforeTargets="_GetPackageFiles">
<ItemGroup>
<NoneInclude="$(MSBuildThisFileDirectory)../../../../Libraries/src/Amazon.Lambda.RuntimeSupport/bin/$(Configuration)/%(TargetFrameworks.Identity)/publish/**/*.*">
<Pack>true</Pack>
<PackagePath>content\Amazon.Lambda.RuntimeSupport\%(TargetFrameworks.Identity)</PackagePath>
</None>
</ItemGroup>
</Target>
<ItemGroup>
<EmbeddedResourceInclude="Resources\**" />
</ItemGroup>
<ItemGroup>
<NoneUpdate="appsettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<NoneUpdate="appsettings.Development.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<NoneInclude="../../README.md"Pack="true"PackagePath="\" />
</ItemGroup>
</Project>