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

FluentFTP.dll produced trim warnings #1372

Open
Reelix opened this issue Nov 15, 2023 · 2 comments
Open

FluentFTP.dll produced trim warnings #1372

Reelix opened this issue Nov 15, 2023 · 2 comments

Comments

@Reelix
Copy link

Reelix commented Nov 15, 2023

FTP Server OS: N/A

FTP Server Type: N/A

Client Computer OS: Windows (Compiling for Linux ARM64)

FluentFTP Version: 48.0.3 (nuget)

Framework: .NET 8

When including FluentFTP in a project and publishing for a self-contained trimmed application, the following warning message appears.

.nuget\packages\fluentftp\48.0.3\lib\net6.0\FluentFTP.dll : warning IL2104: Assembly 'FluentFTP' produced
trim warnings. For more information see https://aka.ms/dotnet-illink/libraries
@robinrodricks
Copy link
Owner

robinrodricks commented Nov 16, 2023

This is FOSS. Not commercial software. So if you can suggest a fix we can look into it.

I tried reading this but its too long drawn to draw any specific suggestions: https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/fixing-warnings

@J0nathan550
Copy link
Contributor

FTP Server OS: N/A

FTP Server Type: N/A

Client Computer OS: Windows (Compiling for Linux ARM64)

FluentFTP Version: 48.0.3 (nuget)

Framework: .NET 8

When including FluentFTP in a project and publishing for a self-contained trimmed application, the following warning message appears.

.nuget\packages\fluentftp\48.0.3\lib\net6.0\FluentFTP.dll : warning IL2104: Assembly 'FluentFTP' produced
trim warnings. For more information see https://aka.ms/dotnet-illink/libraries

Hello! if you try to make trimmed WPF application or whatever GUI application with C#, you cannot do that because Microsoft by themself told to not to. Right now only console apps you can publish as trimmed. But with WPF or any other GUI you can forget not possible. Maybe .NET MAUI, but that's a big question.

Example you can see in: Alliance Uploader, FluentFTP based project to upload files securely. It uses C# console to trim application to consume less space on disk. You can see the file size in Releases. Also project itself sends files more nice then FileZilla. Because for me, FileZilla transfers some files with not enough bytes, resulting corrupted sounds. This project fix everything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants