Enhance certificate handling for .NET 9 compatibility in KubernetesClientConfiguration (#1638)

This commit is contained in:
Boshi Lian
2025-07-14 11:12:24 -07:00
committed by GitHub
parent 67d457a3a2
commit 9efecfdcd4
2 changed files with 14 additions and 6 deletions

View File

@@ -6,6 +6,7 @@
<PublishAot>true</PublishAot>
<IsAotCompatible>true</IsAotCompatible>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<DefineConstants>$(DefineConstants);K8S_AOT</DefineConstants>
</PropertyGroup>
<ItemGroup>
@@ -104,10 +105,6 @@
<Compile Include="..\KubernetesClient\Authentication\TokenCredentials.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.Net.Http" Condition="'$(TargetFramework)' == 'net48'" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\LibKubernetesGenerator\generators\LibKubernetesGenerator\LibKubernetesGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>