Can't figure out how to specify System.DateTime.TryParse method in Trimmer descriptor XML file to have it retain this method overload #109471
Unanswered
rkeithhill-keysight
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Did you inspect the trimmed assemblies with ILSpy, to verify which are present/missing in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have a .NET library that dynamically loads a C++/CLI assembly from another app's install dir. I'm experimenting with using a Root descriptor XML file to tell the trimmer for my sample app, not to trim this a particular overload. The overload is:
I have tried variations specifying this method (or the entire DateTime type):
I think DateTime is actually implemented/provided in
System.Private.CoreLib.dll
even though the API docs saySystem.Runtime.dll
.I've tried the simple
<type fullname="System.DateTime"/>
to keep all of DateTime. And I've tried specifying thesignature
. BTW it's not obvious in the docs how to specify a signature that has anout
parameter. Also, the signature format does not seem to be forgiving RE extra spaces - so, no spaces between parameters.The only way I've gotten my sample/test app to get past this missing method exception is to add a call to this DateTime.TryParse method overload in the app. That's fine for my testing, but not for folks who use my library. At the end of the day, I figure it won't be realistic to provide my library as "trim-enabled", but I'd like to get a bit further to see how big the problem is.
Beta Was this translation helpful? Give feedback.
All reactions