Skip to content

Commit 7ad12a4

Browse files
authored
Turn on <IsAotCompatible> (#6097)
1 parent 42e02af commit 7ad12a4

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<Import Project="../Directory.Build.props" />
33

44
<PropertyGroup>
5+
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible>
56
<GenerateDocumentationFile>true</GenerateDocumentationFile>
67
</PropertyGroup>
78

src/Npgsql/Npgsql.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
<ProjectReference Include="../Npgsql.SourceGenerators/Npgsql.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
2020
</ItemGroup>
2121

22-
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
23-
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" PrivateAssets="All" />
24-
</ItemGroup>
25-
2622
<ItemGroup>
2723
<None Include="README.md" Pack="true" PackagePath="\" />
2824
</ItemGroup>

0 commit comments

Comments
 (0)