If you are building a class library with Retargetable turned on, you might end up your assemblies to be used by some environment that does not support some of the functionality that is well required by the assembly. Let us consider the case with Caller Info Attributes. Caller Info attributes are a good way of determining the name of the method, the line number and the file path of the source file for which the line is actually getting executed. It has been introduced with .NET 4.5 but was not a part of the other frameworks yet released. It is worth noting the fact, the previous version of the environment still have these info embedded within the runtime while running the code at least in debug mode, yet these functionalities were never been exposed.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials,Daily .Net Tips