Skip to content

为各项目添加支持 IsTrimmableIsAotCompatible 的框架以及属性 #2008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2025

Conversation

Delsin-Yu
Copy link
Contributor

在此 PR 之前,因为多数项目仅面向较旧的框架版本(net46, netstandard2.0 等),这导致我们无法在项目中启用 裁剪兼容性检查器IsTrimmable=true)以及 AOT兼容性检查器IsAotCompatible=true),此 PR 为这些项目添加了这些框架(...;net6.0;net7.0),并在项目中启用了这两种检查器;现在,在执行项目构建时,对应的项目会正确回报对裁剪、AOT不兼容API的调用。

此 PR 为解决 #2007 的前置条件,因为仅靠在较新框架上发布应用程序并不能涵盖所有API的使用。

@2881099
Copy link
Collaborator

2881099 commented Apr 15, 2025

这个PR不能合并,targetFrameworks修改会导致很多运行时问题。

@2881099
Copy link
Collaborator

2881099 commented Apr 15, 2025

有没有其他方法解决?

@Delsin-Yu Delsin-Yu force-pushed the trimmer-compat-initial branch from 192a749 to cc13d0d Compare April 15, 2025 15:36
@Delsin-Yu
Copy link
Contributor Author

@2881099 已根据需求删除了对Providers项目的更改

@2881099 2881099 merged commit 7918190 into dotnetcore:master Apr 16, 2025
1 check passed
2881099 added a commit that referenced this pull request Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants