Open mbrajk opened 1 month ago
Spectre.Console solution from provided thread appears to work. Not the most ideal solution. Ideal would be for Specture.Console to support trimming but that isn't going to be implemented by me.
Further investigation is still needed on either a solution or a replacement for Refit
Issue The .exe that is generated by the build process is around 70MB. Dotnet apps are known to be large but it may be possible to reduce this size by implementing tree trimming using the property on the csproj. Initial results show a size closer to 15MB.
Concerns Simply turning on PublishTrimmed puts the built application into to a non-working state as Refit and Spectre.Console are both currently unsupported in AOT Trimmed mode. There are potential solutions for Spectre.Console in this thread.
Refit has yet to be investigated.