LoopbackManager.Desktop icon indicating copy to clipboard operation
LoopbackManager.Desktop copied to clipboard

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

Open Scighost opened this issue 1 year ago • 0 comments

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 / 应用来源

  • [X] Microsoft Store
  • [X] Github
  • [ ] Others / 其它

Other sources

No response

System version

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

Other system versions / 其它系统版本

No response

Device / 运行设备

Desktop/桌面/台式机

Remark / 备注

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

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

No response

Scighost avatar Sep 16 '22 10:09 Scighost