Skip to content

Commit

Permalink
feat: appsettings.json 그룹핑
Browse files Browse the repository at this point in the history
  • Loading branch information
hhko committed Dec 27, 2024
1 parent b50efdd commit f0e8f8a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,19 @@ services:
- 컨테이너일 때(도커 컴포즈): host.docker.internal
- 호스트일 때(콘솔): 127.0.0.1

## Ch 16.4 콘솔 프로젝트 appsettings.json 그룹핑
```xml
<ItemGroup>
<Content Include="appsettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="appsettings.*.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<DependentUpon>appsettings.json</DependentUpon>
</Content>
</ItemGroup>
```

<br/>

---
Expand Down
9 changes: 3 additions & 6 deletions Template/Backend/Api/Src/Crop.Hello.Api/Crop.Hello.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
</PropertyGroup>

<ItemGroup>
<Content Include="appsettings.Docker.json">
<Content Include="appsettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="appsettings.json">
<Content Include="appsettings.*.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<DependentUpon>appsettings.json</DependentUpon>
</Content>
</ItemGroup>

Expand All @@ -34,8 +35,4 @@
<None Remove="logs\**" />
</ItemGroup>

<ItemGroup>
<None Remove="appsettings.Docker.json" />
</ItemGroup>

</Project>

0 comments on commit f0e8f8a

Please sign in to comment.