Skip to content

Commit 1016fc5

Browse files
committed
Utilize Microsoft.AspNetCore.App library to minimize package size
1 parent 312d23d commit 1016fc5

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

Directory.Build.initial.targets

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<Project>
22

3-
<!--<PropertyGroup Condition="'$(FrameworkVersion)' == ''">
4-
<FrameworkVersion Condition="'$(NET_3_1)' == true">3.*</FrameworkVersion>
5-
<FrameworkVersion Condition="'$(NET_5_0)' == true">5.*</FrameworkVersion>
3+
<PropertyGroup Condition="'$(FrameworkVersion)' == ''">
64
<FrameworkVersion Condition="'$(NET_6_0)' == true">6.*</FrameworkVersion>
7-
<FrameworkVersion Condition="'$(NET_7_0)' == true">7.*</FrameworkVersion>
85
<FrameworkVersion Condition="'$(NET_8_0)' == true">8.*</FrameworkVersion>
9-
</PropertyGroup>-->
6+
<FrameworkVersion Condition="'$(NET_9_0)' == true">9.*</FrameworkVersion>
7+
<FrameworkVersion Condition="'$(NET_10_0)' == true">10.*</FrameworkVersion>
8+
</PropertyGroup>
109

1110
<!--<PropertyGroup>
1211
<SystemTextJsonVersion Condition="'$(SystemTextJsonVersion)' == '' And '$(NET_5_0_LESS)' == true">6.*</SystemTextJsonVersion>

DotnetAppSettings.Test/ConvertTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private static List<AzureAppSetting> GetSettings(bool? slotSetting)
1616
new AzureAppSetting("Parrent__Array6__1__Additional", "Add2", slotSetting),
1717
new AzureAppSetting("Parrent__Array6__1__Name", "Element2", slotSetting),
1818
new AzureAppSetting("Parrent__Child1__Key3", "Value3", slotSetting),
19-
#if NET8_0_OR_GREATER
19+
#if NET10_0_OR_GREATER
2020
new AzureAppSetting("Parrent__Child1__Key4", null, slotSetting),
2121
#else
2222
new AzureAppSetting("Parrent__Child1__Key4", "", slotSetting),

DotnetAppSettings/DotnetAppSettings.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
</ItemGroup>
2121

2222
<ItemGroup>
23-
<PackageReference Include="Microsoft.Extensions.Configuration.Json" />
2423
<PackageReference Include="NetLah.Abstractions" />
2524
<PackageReference Include="NetLah.Extensions.CommandLineUtils" />
2625
<PackageReference Include="YamlDotNet" />

0 commit comments

Comments
 (0)