Skip to content
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

ReactiveUI 引入了 WinForm 和 WPF 的框架,导致包大小急剧膨胀 #5

Open
3 of 5 tasks
Scighost opened this issue Sep 16, 2022 · 0 comments
Open
3 of 5 tasks
Assignees
Labels
bug Something isn't working

Comments

@Scighost
Copy link

Bug description / Bug 描述

ReactiveUI 引用了包 DynamicData,DynamicData 引用了包 System.Reactive,System.Reactive 的项目文件中有这样一段:

<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1' or $(TargetFramework.StartsWith('net5.0-windows'))">
	<UseWPF>true</UseWPF>
	<UseWindowsForms>true</UseWindowsForms>
	<IncludeBuildOutput Condition="'$(TargetFramework)' == 'netcoreapp3.1'">false</IncludeBuildOutput>
</PropertyGroup>

导致在发布的时候会包含 WinForm 和 WPF 的框架。

image

Reproduce steps / 复现问题的步骤

1. 创建新的 WinUI 3 项目
2. 打包
3. 引用 ReactiveUI
4. 打包
5. 比较大小

截图见下方

Expected behavior / 预期行为

减小安装包文件的大小

Screenshot / 截图

image

Application source / 应用来源

  • Microsoft Store
  • Github
  • Others / 其它

Other sources

No response

System version

  • Windows 11 21H2 (Build 22000)
  • Others / 其它

Other system versions / 其它系统版本

No response

Device / 运行设备

Desktop/桌面/台式机

Remark / 备注

除了不引用这些包外,没有找到其他的解决办法。

We are the world / 人人为我,我为人人

No response

@Scighost Scighost added the bug Something isn't working label Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants