-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
.NET 5 Linux Trimming Error #42582
Comments
Tagging subscribers to this area: @safern, @ViktorHofer |
Exclude that file from trimming |
The file version is 0.0.0.0. It is not part of any of my nuget packages that I can tell. How would I go about excluding this? It feels like a phantom file given the version... |
Is this working? I got similar problems using that and stuff like that fixed many issues for me
|
I had to add the following:
It's odd that these core set of assemblies would even be analyzed by the trimmer at all... :| |
Yea that's pretty annoying that's true, but at least it works for now :D |
Tagging subscribers to this area: @vitek-karas, @agocke |
I know |
I think for now it's fine - I expect the problem to be somewhere in FX, but before we figure out where... it can stay here 😉 |
I have 2 ubuntu servers. One of them oddly does not have this problem. The other, which I had previously installed the .NET 3.1.101 sdk on and then removed had the issue. Servers are identical otherwise.
This project references another shared library project which looks like this:
|
Is this fixed now that we are copying facade assemblies? See dotnet/linker#1837 |
Yes, I believe this is fixed. (We're not copying facades - we're consistently keeping the pieces that are required by other assemblies that are copied or by string references to facade assemblies). |
Publishing my app to Ubuntu with Linux-x64 platform using .NET 5 RC 1. Trimming is ON, single file is off.
Upon startup, I get this error:
This error does not happen with .net core 3.1 with trimming enabled.
The text was updated successfully, but these errors were encountered: