Coder Social home page Coder Social logo

Comments (8)

cnbluefire avatar cnbluefire commented on August 29, 2024 1

他的项目体积小应该是因为开了PublishTrimmed,热词是用wpf开发的,官方文档的描述如下

Windows Presentation Foundation (WPF) 框架大量利用反射,而某些功能则很大程度上依赖于运行时代码检查。 在 .NET 6 中,剪裁分析无法保留 WPF 应用程序的所有必需代码。 遗憾的是,在剪裁后几乎没有 WPF 应用可运行,因此 .NET 6 SDK 中已禁用对 WPF 的剪裁支持。

from hotlyric.

cnbluefire avatar cnbluefire commented on August 29, 2024

Windows商店并不存在共享的dotnet runtime

from hotlyric.

FrzMtrsprt avatar FrzMtrsprt commented on August 29, 2024

不太了解 WinUI 开发,但 这个项目 使用了共享的 Windows App 运行时,主包只有 65MB 大小,可以手动脚本安装依赖,也可以通过包安装器自动安装依赖。不知道热词是否也能采用这种方法?
相关文档

from hotlyric.

cnbluefire avatar cnbluefire commented on August 29, 2024

可热词不是winui3开发的,也根本没用到wasdk啊

from hotlyric.

FrzMtrsprt avatar FrzMtrsprt commented on August 29, 2024

明白了

from hotlyric.

FrzMtrsprt avatar FrzMtrsprt commented on August 29, 2024

重写后是否考虑对发布体积进行优化呢

from hotlyric.

cnbluefire avatar cnbluefire commented on August 29, 2024

暂时不考虑,trim还存在很多问题,会增加开发难度。
通过微软商店分发app的时候,会自动启用增量更新,所以app体积不是问题。

from hotlyric.

FrzMtrsprt avatar FrzMtrsprt commented on August 29, 2024

好的,明白了

from hotlyric.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.