|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk">
|
2 | 2 | <PropertyGroup>
|
3 |
| - <TargetFrameworks>net9.0;net8.0;net7.0;net6.0;net5.0;netcoreapp3.1;netstandard2.0;netstandard2.1</TargetFrameworks> |
| 3 | + <FunckyNewestTargetFramework>net9.0</FunckyNewestTargetFramework> |
| 4 | + <TargetFrameworks>$(FunckyNewestTargetFramework);net8.0;net7.0;net6.0;net5.0;netcoreapp3.1;netstandard2.0;netstandard2.1</TargetFrameworks> |
4 | 5 | <LangVersion>preview</LangVersion>
|
5 | 6 | <Nullable>enable</Nullable>
|
6 | 7 | <Product>Funcky</Product>
|
|
20 | 21 | </PropertyGroup>
|
21 | 22 | <PropertyGroup>
|
22 | 23 | <DefineConstants>$(DefineConstants);CONTRACTS_FULL</DefineConstants>
|
23 |
| - <TargetFrameworkForPublicApiAnalyzers>net9.0</TargetFrameworkForPublicApiAnalyzers> |
24 | 24 | </PropertyGroup>
|
25 | 25 | <ItemGroup>
|
26 |
| - <PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" PrivateAssets="all" Condition="'$(TargetFramework)' == '$(TargetFrameworkForPublicApiAnalyzers)'" /> |
27 | 26 | <PackageReference Include="Microsoft.Bcl.HashCode" Condition="'$(TargetFramework)' == 'netstandard2.0'" />
|
28 | 27 | <PackageReference Include="PolySharp" PrivateAssets="all" />
|
29 | 28 | <PackageReference Include="System.Collections.Immutable" Condition="'$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'netstandard2.1'" />
|
|
34 | 33 | <ItemGroup>
|
35 | 34 | <ProjectReference Include="..\Funcky.SourceGenerator\Funcky.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="all" />
|
36 | 35 | </ItemGroup>
|
37 |
| - <!-- These files are included by Microsoft.CodeAnalysis.PublicApiAnalyzers is included. --> |
38 |
| - <ItemGroup Condition="'$(TargetFramework)' != '$(TargetFrameworkForPublicApiAnalyzers)'"> |
39 |
| - <AdditionalFiles Include="PublicAPI.Shipped.txt" /> |
40 |
| - <AdditionalFiles Include="PublicAPI.Unshipped.txt" /> |
41 |
| - </ItemGroup> |
42 | 36 | <PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
|
43 | 37 | <IsTrimmable>true</IsTrimmable>
|
44 | 38 | <EnableTrimAnalyzer>true</EnableTrimAnalyzer>
|
|
63 | 57 | <Import Project="..\Analyzers.props" />
|
64 | 58 | <Import Project="..\GlobalUsings.props" />
|
65 | 59 | <Import Project="..\FrameworkFeatureConstants.props" />
|
| 60 | + <Import Project="..\PublicApiAnalyzers.targets" /> |
66 | 61 | </Project>
|
0 commit comments