question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: Which assemblies are safe to remove after publish?

See original GitHub issue

PublishTrimmed=true fails when using Avalonia. So I would like to manually remove assemblies which are not required at all when targeting Linux 64bit only. Which assemblies are safe to remove (I expect some aren’t used at all, for example Avalonia.Win32.dll) ?

Avalonia.Animation.dll
Avalonia.Base.dll
Avalonia.Controls.DataGrid.dll
Avalonia.Controls.dll
Avalonia.DesignerSupport.dll
Avalonia.Desktop.dll
Avalonia.DesktopRuntime.dll
Avalonia.Diagnostics.dll
Avalonia.Dialogs.dll
Avalonia.Direct2D1.dll
Avalonia.dll
Avalonia.FreeDesktop.dll
Avalonia.Input.dll
Avalonia.Interactivity.dll
Avalonia.Layout.dll
Avalonia.Logging.Serilog.dll
Avalonia.Markup.dll
Avalonia.Markup.Xaml.dll
Avalonia.Native.dll
Avalonia.OpenGL.dll
Avalonia.ReactiveUI.dll
Avalonia.Remote.Protocol.dll
Avalonia.Skia.dll
Avalonia.Styling.dll
Avalonia.Themes.Default.dll
Avalonia.Visuals.dll
Avalonia.Win32.dll
Avalonia.X11.dll
DynamicData.dll
JetBrains.Annotations.dll
Microsoft.CodeAnalysis.CSharp.dll
Microsoft.CodeAnalysis.dll
Microsoft.CodeAnalysis.VisualBasic.dll
Microsoft.VisualBasic.dll
Microsoft.Win32.SystemEvents.dll
ReactiveUI.dll
Serilog.dll
Serilog.Sinks.Debug.dll
Serilog.Sinks.Trace.dll
SharpDX.Direct2D1.dll
SharpDX.Direct3D11.dll
SharpDX.dll
SharpDX.DXGI.dll
SharpGen.Runtime.COM.dll
SharpGen.Runtime.dll
SkiaSharp.dll
Splat.dll
System.Drawing.Common.dll
System.Reactive.dll
Tmds.DBus.dll

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
kekekekscommented, Jan 29, 2020

You can remove the reference to Avalonia.Desktop and reference platform backends manually.

2reactions
ahoppercommented, Jan 29, 2020

PublishTrimmed is working for me (at least on windows and linux using netcore 3.1) there is an approach in my last comment on https://github.com/AvaloniaUI/Avalonia/issues/3337 that removes a lot of stuff, also on windows using -r win-x64 removed some stuff.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Removing all assemblies from <compilation ...
I removed all the 'add' elements in the compilation/assemblies element. So initially in my application's root web.config file: <compilation ...
Read more >
Safe to delete empty folders from c:\windows\assembly?
I noticed that after some programs are uninstalled, they leave empty folders in c:\windows\assembly\ (Windows 7). Although there is no harm in ...
Read more >
Undo Assembly Posting - Business Central
Undo the posting of an assembly order to correct a mistake or remove an unwanted posting. When you undo a posted assembly order, ......
Read more >
How to publish a webapp with DevExpress assemblies and ...
Hello Martijn,. As you know our assemblies are installed in the GAC so that they are automatically added to the bin folder. You...
Read more >
Chapter 2.30 | Code of Ordinances | Anchorage, AK
After assembly organization following a regular election, assembly ... Safety rules. ... The municipal clerk may also publish in a newspaper of general ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found