-
Notifications
You must be signed in to change notification settings - Fork 495
Expand file tree
/
Copy pathAmazon.Lambda.Annotations.SourceGenerator.csproj
More file actions
170 lines (151 loc) · 7.91 KB
/
Amazon.Lambda.Annotations.SourceGenerator.csproj
File metadata and controls
170 lines (151 loc) · 7.91 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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net6.0;net8.0</TargetFrameworks>
<Authors>Amazon Web Services</Authors>
<PackageTags>AWS Amazon Lambda</PackageTags>
<Description>Annotations that can be added to Lambda projects to generate C# code and CloudFormation templates.</Description>
<PackageProjectUrl>https://github.com/aws/aws-lambda-dotnet</PackageProjectUrl>
<PackageIcon>images\icon.png</PackageIcon>
<PackageReadmeFile>docs\README.md</PackageReadmeFile>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<!--This assembly needs to access internal methods inside the Amazon.Lambda.Annotations assembly.
Both these assemblies need to be strongly signed for the InternalsVisibleTo attribute to take effect.-->
<AssemblyOriginatorKeyFile>..\..\..\buildtools\public.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<!-- This is required to allow copying all the dependencies to bin directory which can be copied after to nuget package based on nuspec -->
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<IncludeBuildOutput>false</IncludeBuildOutput>
<Version>1.15.2</Version>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<!-- Delay setting the package id till after resolving dependencies to avoid ambigious errors. -->
<Target Name="SetPackageId" BeforeTargets="GenerateNuspec">
<PropertyGroup>
<PackageId>Amazon.Lambda.Annotations</PackageId>
</PropertyGroup>
</Target>
<ItemGroup>
<None Include="$(OutputPath)\netstandard2.0\Amazon.Lambda.Annotations.dll" Pack="true" PackagePath="lib/netstandard2.0" Visible="false" />
<None Include="$(OutputPath)\netstandard2.0\Amazon.Lambda.Annotations.xml" Pack="true" PackagePath="lib/netstandard2.0" Visible="false" />
<None Include="$(OutputPath)\net6.0\Amazon.Lambda.Annotations.dll" Pack="true" PackagePath="lib/net6.0" Visible="false" />
<None Include="$(OutputPath)\net6.0\Amazon.Lambda.Annotations.xml" Pack="true" PackagePath="lib/net6.0" Visible="false" />
<None Include="$(OutputPath)\net8.0\Amazon.Lambda.Annotations.dll" Pack="true" PackagePath="lib/net8.0" Visible="false" />
<None Include="$(OutputPath)\net8.0\Amazon.Lambda.Annotations.xml" Pack="true" PackagePath="lib/net8.0" Visible="false" />
<None Include="$(OutputPath)\netstandard2.0\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<None Include="$(OutputPath)\netstandard2.0\Amazon.Lambda.Annotations.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<None Include="$(OutputPath)\netstandard2.0\Newtonsoft.Json.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<None Include="$(OutputPath)\netstandard2.0\YamlDotNet.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis" Version="4.0.1" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.1" PrivateAssets="all" />
<PackageReference Include="System.CodeDom" Version="6.0.0" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" GeneratePathProperty="true" PrivateAssets="all" />
<PackageReference Include="YamlDotNet" Version="12.0.0" GeneratePathProperty="true" PrivateAssets="all" />
</ItemGroup>
<PropertyGroup>
<GetTargetPathDependsOn>$(GetTargetPathDependsOn);GetDependencyTargetPaths</GetTargetPathDependsOn>
</PropertyGroup>
<Target Name="GetDependencyTargetPaths">
<ItemGroup>
<TargetPathWithTargetPlatformMoniker Include="$(PKGNewtonsoft_Json)\lib\netstandard2.0\Newtonsoft.Json.dll" IncludeRuntimeDependency="false" />
<TargetPathWithTargetPlatformMoniker Include="$(PKGYamlDotNet)\lib\netstandard2.0\YamlDotNet.dll" IncludeRuntimeDependency="false" />
</ItemGroup>
</Target>
<ItemGroup>
<ProjectReference Include="..\Amazon.Lambda.Annotations\Amazon.Lambda.Annotations.csproj" OutputItemType="Analyzer">
<ExcludeAssets>All</ExcludeAssets>
</ProjectReference>
<ProjectReference Include="..\Amazon.Lambda.Core\Amazon.Lambda.Core.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="Templates\APIGatewayInvoke.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>APIGatewayInvoke.cs</LastGenOutput>
</None>
<None Update="Templates\APIGatewaySetupParameters.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>APIGatewaySetupParameters.cs</LastGenOutput>
</None>
<None Update="Templates\FieldsAndConstructor.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>FieldsAndConstructor.cs</LastGenOutput>
</None>
<None Update="Templates\LambdaFunctionTemplate.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>LambdaFunctionTemplate.cs</LastGenOutput>
</None>
<None Update="Templates\NoEventMethodBody.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>NoEventMethodBody.cs</LastGenOutput>
</None>
<None Update="Templates\ExecutableAssembly.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>ExecutableAssembly.cs</LastGenOutput>
</None>
<None Update="Templates\AuthorizerSetupParameters.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>AuthorizerSetupParameters.cs</LastGenOutput>
</None>
<None Update="Templates\AuthorizerInvoke.tt">
<Generator>TextTemplatingFilePreprocessor</Generator>
<LastGenOutput>AuthorizerInvoke.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<Compile Update="Templates\APIGatewayInvoke.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>APIGatewayInvoke.tt</DependentUpon>
</Compile>
<Compile Update="Templates\APIGatewaySetupParameters.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>APIGatewaySetupParameters.tt</DependentUpon>
</Compile>
<Compile Update="Templates\FieldsAndConstructor.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>FieldsAndConstructor.tt</DependentUpon>
</Compile>
<Compile Update="Templates\LambdaFunctionTemplate.cs">
<DependentUpon>LambdaFunctionTemplate.tt</DependentUpon>
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
</Compile>
<Compile Update="Templates\NoEventMethodBody.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>NoEventMethodBody.tt</DependentUpon>
</Compile>
<Compile Update="Templates\ExecutableAssembly.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ExecutableAssembly.tt</DependentUpon>
</Compile>
<Compile Update="Templates\AuthorizerSetupParameters.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>AuthorizerSetupParameters.tt</DependentUpon>
</Compile>
<Compile Update="Templates\AuthorizerInvoke.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>AuthorizerInvoke.tt</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="Diagnostics\AnalyzerReleases.Shipped.md" />
<AdditionalFiles Include="Diagnostics\AnalyzerReleases.Unshipped.md" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\..\icon.png" Pack="true" PackagePath="images\icon.png" />
<None Include="..\Amazon.Lambda.Annotations\README.md" Pack="true" PackagePath="docs\README.md" />
<None Include="..\Amazon.Lambda.Annotations\THIRD_PARTY_LICENSES" Pack="true" PackagePath="" />
</ItemGroup>
</Project>