This project has moved. For the latest updates, please go here.
1

Closed

Add property %UserDisplayName% that expands to full user name

description

The similar property %UserName% already exists, but it is expanded to a login of the current user. In some cases, for example, in projects where several developers are involved, it will be good to have another property that will be expanded to displayed name of the current user obtained from the local machine or a domain. This information can be retrieved with the following line of code, witch works both for a domain and a local user:
string displayName = UserPrincipal.Current.DisplayName;
This will allow providing license headers with real names of developers, not just their logins, for example, when user login is "jsm" while displayed name is John Smith.

Invocation of UserPrincipal.Current.DisplayName can take several hundreds of milliseconds. Therefore it will be good to use cache for information about the displayed name of the current user. This information does not change very often and can be retrieved in a static constructor.

Correspondent discussion was previously opened and can be found with the following link.
Closed Aug 17, 2015 at 9:52 AM by MichaelKetting

comments

FabianSchmied wrote Dec 12, 2013 at 11:45 AM

FabianSchmied wrote Dec 12, 2013 at 11:57 AM

Accepted pull request, but still needs to be tested.

HeinrichCodePlex wrote Jun 5, 2015 at 9:09 AM

From which version has been this issue resolved? With the downlodable it is not.

FabianSchmied wrote Jun 9, 2015 at 7:54 AM

It is resolved in the current default branch and will be included in version 1.6, which hasn't been released yet.