-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOproto.Lambda.OpenApi.Examples.csproj
More file actions
53 lines (44 loc) · 2.3 KB
/
Oproto.Lambda.OpenApi.Examples.csproj
File metadata and controls
53 lines (44 loc) · 2.3 KB
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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<AWSProjectType>Lambda</AWSProjectType>
<IsPackable>false</IsPackable>
<RootNamespace>Examples</RootNamespace>
<AssemblyName>Examples</AssemblyName>
<!-- Documentation - suppress warnings for generated code -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591;CS1574;CS0618</NoWarn>
<!-- Emit source generator output to disk for debugging -->
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GeneratedFiles</CompilerGeneratedFilesOutputPath>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.6.1" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.3" />
<PackageReference Include="Amazon.Lambda.Core" Version="2.5.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.4.4" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Oproto.Lambda.OpenApi\Oproto.Lambda.OpenApi.csproj" />
<ProjectReference Include="..\Oproto.Lambda.OpenApi.SourceGenerator\Oproto.Lambda.OpenApi.SourceGenerator.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false" />
</ItemGroup>
<!-- Add analyzer dependencies -->
<ItemGroup>
<Analyzer Include="..\Oproto.Lambda.OpenApi.SourceGenerator\bin\$(Configuration)\netstandard2.0\Microsoft.OpenApi.dll" />
</ItemGroup>
<!-- Import the build task for local development -->
<UsingTask TaskName="Oproto.Lambda.OpenApi.Build.ExtractOpenApiSpecTask"
AssemblyFile="..\Oproto.Lambda.OpenApi.Build\bin\$(Configuration)\netstandard2.0\Oproto.Lambda.OpenApi.Build.dll"/>
<Target Name="GenerateOpenApi" AfterTargets="Build">
<Message Text="Starting OpenAPI Generation" Importance="high"/>
<ExtractOpenApiSpecTask
AssemblyPath="$(TargetDir)$(TargetFileName)"
OutputPath="$(ProjectDir)openapi.json"
IntermediateOutputPath="$(IntermediateOutputPath)"/>
</Target>
</Project>