Skip to content

Commit 48dbf5e

Browse files
committed
fix: Fixed issue with generators.
1 parent c3bed7c commit 48dbf5e

2 files changed

Lines changed: 14 additions & 20 deletions

File tree

src/libs/Anthropic/Anthropic.csproj

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,5 @@
3838
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
3939
<PackageReference Include="System.Text.Json" Version="9.0.0-rc.2.24473.5" />
4040
</ItemGroup>
41-
42-
<ItemGroup>
43-
<None Include="..\Anthropic.Generators\bin\$(Configuration)\netstandard2.0\H.Generators.Extensions.dll" Pack="true" PackagePath="analyzers/dotnet" Visible="false" />
44-
<None Include="..\Anthropic.Generators\bin\$(Configuration)\netstandard2.0\Anthropic.Generators.Core.dll" Pack="true" PackagePath="analyzers/dotnet" Visible="false" />
45-
<None Include="..\Anthropic.Generators\bin\$(Configuration)\netstandard2.0\System.Collections.Immutable.dll" Pack="true" PackagePath="analyzers/dotnet" Visible="false" />
46-
</ItemGroup>
47-
48-
<ItemGroup Label="CLSCompliant">
49-
<AssemblyAttribute Include="System.CLSCompliantAttribute">
50-
<_Parameter1>true</_Parameter1>
51-
</AssemblyAttribute>
52-
</ItemGroup>
53-
54-
<PropertyGroup Label="Trimmable" Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
55-
<IsAotCompatible>true</IsAotCompatible>
56-
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
57-
<IsTrimmable>true</IsTrimmable>
58-
<SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings>
59-
<TrimmerSingleWarn>false</TrimmerSingleWarn>
60-
</PropertyGroup>
6141

6242
</Project>

src/libs/Directory.Build.props

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
<SignAssembly>true</SignAssembly>
99
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)../key.snk</AssemblyOriginatorKeyFile>
1010
</PropertyGroup>
11+
12+
<ItemGroup Label="CLSCompliant">
13+
<AssemblyAttribute Include="System.CLSCompliantAttribute">
14+
<_Parameter1>true</_Parameter1>
15+
</AssemblyAttribute>
16+
</ItemGroup>
1117

1218
<PropertyGroup Label="Nuget">
1319
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
@@ -48,4 +54,12 @@
4854
<AnalysisMode>All</AnalysisMode>
4955
</PropertyGroup>
5056

57+
<PropertyGroup Label="Trimmable" Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
58+
<IsAotCompatible>true</IsAotCompatible>
59+
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
60+
<IsTrimmable>true</IsTrimmable>
61+
<SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings>
62+
<TrimmerSingleWarn>false</TrimmerSingleWarn>
63+
</PropertyGroup>
64+
5165
</Project>

0 commit comments

Comments
 (0)