-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathService.csproj
More file actions
46 lines (39 loc) · 1.56 KB
/
Service.csproj
File metadata and controls
46 lines (39 loc) · 1.56 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
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<AssemblyName>AddressBook</AssemblyName>
<RootNamespace>AddressBook</RootNamespace>
<LangVersion>12.0</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<OutputType>Exe</OutputType>
<IsPackable>False</IsPackable>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);1591</NoWarn>
</PropertyGroup>
<PropertyGroup>
<Title>AddressBook</Title>
<Description>Simple REST API for storing contacts in an address book.</Description>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.27" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.2.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Dto\Dto.csproj" />
</ItemGroup>
<!-- Include XML documentation in Publish Output to make it available for Swagger generation. -->
<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish">
<ItemGroup>
<DocFile Include="$(OutputPath)\AddressBook.xml" />
<DocFile Include="$(OutputPath)\AddressBook.Dto.xml" />
</ItemGroup>
<Copy SourceFiles="@(DocFile)" DestinationFolder="$(PublishDir)" SkipUnchangedFiles="False" />
</Target>
<!-- Global usings -->
<ItemGroup>
<Using Include="System.ComponentModel.DataAnnotations" />
<Using Include="Microsoft.EntityFrameworkCore" />
</ItemGroup>
</Project>