-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
ParseException when using dotnet trimmer with TrimMode=full #678
Comments
Hello @tranb3r, |
Just for information, I can workaround this exception by adding to my app these attributes when calling SLDC:
|
@StefH |
@StefH |
1. Description
I'm using
DynamicExpressionParser.ParseLambda
in a dotnet console application.The expression I'm parsing is pretty simple, and it involves comparing an
integer
and abyte
.It's working just as expected, unless I'm using the dotnet trimmer in full mode, in which case it's raising a
ParseException
.I've already tried to root assembly
System.Linq.Dynamic.Core
for the trimmer, but it doesn't fix the issue.Could you please help me find a solution?
2. Exception
3. Fiddle or Project
Here is a repro: https://github.com/tranb3r/Issues/tree/main/SldcTrimmer
Try first launching the app from VS, in debug or release: no issue.
Then, publish the app. It will run the trimmer. Then run the published
SldcTrimmer.exe
: it fails.4. Any further technical details
Here is a warning that is shown when publishing the app.
Assembly 'System.Linq.Dynamic.Core' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries
.But I have no idea how I can get more information and investigate more.
The text was updated successfully, but these errors were encountered: