Skip to content

Commit 5ba18a7

Browse files
committed
Add INI/JSON/.NETCONFIG, copy content to output by default
This makes the scenario of .AddJsonFile(...) .AddIniFile(...) .AddDotNetConfig() work by default
1 parent 883668c commit 5ba18a7

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Smith.msbuildproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66
<PackageOutputPath>$(MSBuildThisFileDirectory)bin</PackageOutputPath>
77
</PropertyGroup>
88
<ItemGroup>
9+
<PackageReference Include="DotNetConfig.Configuration" Version="1.2.0" />
910
<PackageReference Include="Microsoft.Extensions.AI" Version="9.5.0" />
1011
<PackageReference Include="Microsoft.Extensions.AI.OpenAI" Version="9.5.0-preview.1.25265.7" />
1112
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.5" />
1213
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="9.0.5" />
14+
<PackageReference Include="Microsoft.Extensions.Configuration.Ini" Version="9.0.5" />
15+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.5" />
1316
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="9.0.5" />
1417
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.5" />
1518
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.5" />

Smith.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@
3232
<ProjectProperty Include="UserSecretsId" />
3333
</ItemGroup>
3434

35+
<ItemGroup>
36+
<Content Include="*.json;*.ini" CopyToOutputDirectory="PreserveNewest" />
37+
</ItemGroup>
38+
3539
</Project>

Smith.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Project>
2+
3+
</Project>

0 commit comments

Comments
 (0)