File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed
Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 1919 <CodeAnalysisRuleset >$(MSBuildThisFileDirectory)Grpc.DotNet.ruleset</CodeAnalysisRuleset >
2020
2121 <IsTrimmable >true</IsTrimmable >
22- <!-- Unable to trim netstandard2.1 projects. See https://github.com/dotnet/linker/issues/3175 -->
23- <!-- Don't use SDK's trimming functionality. -->
24- <_IsTrimmingEnabled >false</_IsTrimmingEnabled >
25- <EnableAOTAnalyzer >false</EnableAOTAnalyzer >
22+ <EnableAOTAnalyzer >true</EnableAOTAnalyzer >
2623 </PropertyGroup >
2724
2825 <!-- IsGrpcPublishedPackage is set in csproj so related config must be in targets file -->
3330 <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" $(MicrosoftSourceLinkGitHubPackageVersion)" PrivateAssets =" All" />
3431 </ItemGroup >
3532
33+ <!--
34+ Make a netstandard2.1 copy of the .net ILLinkPack to work around a trimming issue.
35+ See https://github.com/dotnet/linker/issues/3175
36+ -->
37+ <Target Name =" _FixKnownILLinkPack"
38+ BeforeTargets =" ProcessFrameworkReferences" >
39+ <ItemGroup >
40+ <KnownILLinkPack Include =" @(KnownILLinkPack)"
41+ Condition =" '%(TargetFramework)' == 'net8.0'"
42+ TargetFramework =" netstandard2.1"
43+ ILLinkPackVersion =" %(KnownILLinkPack.ILLinkPackVersion)" />
44+ </ItemGroup >
45+ </Target >
46+
3647</Project >
You can’t perform that action at this time.
0 commit comments