forked from Dotnet-Boxed/Templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ApiTemplate.csproj
73 lines (67 loc) · 4.36 KB
/
ApiTemplate.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
<Project Sdk="Microsoft.NET.Sdk.Web">
<!--#if (AuthoringMode)-->
<PropertyGroup>
<!-- Modify these constants to enable/disable a feature to debug the template. Note that this only affects the C#. -->
<DefineConstants>$(DefineConstants);TreatWarningsAsErrors;Kestrel;IIS;NGINX;Azure;ApplicationInsights;HealthCheck;HttpsEverywhere;HstsPreload;ForwardedHeaders;HostFiltering;ResponseCaching;ResponseCompression;CORS;HumansTxt;SecurityTxt;RobotsTxt;Swagger;Versioning;DataContractSerializer;StyleCop;Docker</DefineConstants>
<!-- Workaround to build this project: https://github.com/dotnet/templating/issues/1438 -->
<ApplicationInsights>true</ApplicationInsights>
<Azure>true</Azure>
<Swagger>true</Swagger>
<Versioning>true</Versioning>
<StyleCop>true</StyleCop>
<Docker>true</Docker>
</PropertyGroup>
<!--#endif-->
<PropertyGroup Label="Build">
<TargetFramework>netcoreapp3.1</TargetFramework>
<!--#if (Swagger)-->
<!-- CS1591 - Don't warn about all public members not being documented. -->
<!--#endif-->
<NoWarn Condition="'$(Swagger)' == 'true'">$(NoWarn);CS1591</NoWarn>
<GenerateDocumentationFile Condition="'$(Swagger)' == 'true'">true</GenerateDocumentationFile>
<!-- Used to store connection strings and other sensitive settings, so you don't have to check them into your source
control provider. Only use this in Development, it is not intended for Production use.
See http://docs.asp.net/en/latest/security/app-secrets.html -->
<UserSecretsId>ApiTemplate-113f2d04-69f0-40c3-8797-ba3f356dd812</UserSecretsId>
<!--#if (!IIS)-->
<!-- Disable publishing of a web.config file for IIS when calling dotnet publish. -->
<!--#endif-->
<IsTransformWebConfigDisabled Condition="'$(IIS)' == 'false'">true</IsTransformWebConfigDisabled>
</PropertyGroup>
<PropertyGroup Label="Docker" Condition="'$(Docker)' == 'true'">
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<DockerfileContext>..\..\</DockerfileContext>
</PropertyGroup>
<PropertyGroup Label="Package">
<Authors>PROJECT-AUTHOR-XML</Authors>
<Company>PROJECT-AUTHOR-XML</Company>
<Product>PROJECT-TITLE-XML</Product>
<Description>PROJECT-DESCRIPTION-XML</Description>
<Copyright>Copyright © PROJECT-AUTHOR-XML. All rights Reserved</Copyright>
</PropertyGroup>
<ItemGroup Label="Files">
<Content Include="wwwroot\.well-known\security.txt">
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
</ItemGroup>
<ItemGroup Label="Package References">
<PackageReference Include="Boxed.AspNetCore" Version="5.1.2" />
<PackageReference Include="Boxed.AspNetCore.Swagger" Version="7.1.1" Condition="'$(Swagger)' == 'true'" />
<PackageReference Include="Boxed.Mapping" Version="5.0.0" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.15.0" Condition="'$(ApplicationInsights)' == 'true'" />
<PackageReference Include="Microsoft.AspNetCore.ApplicationInsights.HostingStartup" Version="2.2.0" Condition="'$(ApplicationInsights)' == 'true'" />
<PackageReference Include="Microsoft.AspNetCore.AzureAppServicesIntegration" Version="3.1.9" Condition="'$(Azure)' == 'true'" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.9" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="4.2.0" Condition="'$(Versioning)' == 'true'" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.10.8" Condition="'$(Docker)' == 'true'" />
<PackageReference Include="Serilog" Version="2.10.0" />
<PackageReference Include="Serilog.AspNetCore" Version="3.4.0" />
<PackageReference Include="Serilog.Enrichers.Environment" Version="2.1.3" />
<PackageReference Include="Serilog.Enrichers.Process" Version="2.0.1" />
<PackageReference Include="Serilog.Enrichers.Thread" Version="3.1.0" />
<PackageReference Include="Serilog.Exceptions" Version="5.6.0" />
<PackageReference Include="Serilog.Sinks.ApplicationInsights" Version="3.1.0" Condition="'$(ApplicationInsights)' == 'true'" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" Condition="'$(Swagger)' == 'true'" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="5.6.3" Condition="'$(Swagger)' == 'true'" />
</ItemGroup>
</Project>