From e013fabdf652c0ed5ee285ff7ca47de29ae0732b Mon Sep 17 00:00:00 2001 From: "Sean M. Collins" Date: Mon, 12 Dec 2011 14:35:55 -0500 Subject: [PATCH] Fix deprecation warnings Replace calls that used the deprecated AuthenticatedUser property, to use the abstract method GetAuthenticatedUser() that is implemented by the VS2008 and VS2010 TFSHelper classes. More Info: http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.versioncontrol.client.versioncontrolserver.authenticateduser.aspx --- GitTfs.VsCommon/TfsHelper.Common.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GitTfs.VsCommon/TfsHelper.Common.cs b/GitTfs.VsCommon/TfsHelper.Common.cs index 71a12f09..df8eaab4 100644 --- a/GitTfs.VsCommon/TfsHelper.Common.cs +++ b/GitTfs.VsCommon/TfsHelper.Common.cs @@ -188,7 +188,7 @@ namespace Sep.Git.Tfs.VsCommon [Obsolete("TODO: un-spike-ify this.")] public int Unshelve(Unshelve unshelve, IGitTfsRemote remote, IList args) { - var shelvesetOwner = unshelve.Owner == "all" ? null : (unshelve.Owner ?? VersionControl.AuthenticatedUser); + var shelvesetOwner = unshelve.Owner == "all" ? null : (unshelve.Owner ?? GetAuthenticatedUser()); if (args.Count != 2) { _stdout.WriteLine("ERROR: usage: unshelve -u "); @@ -227,7 +227,7 @@ namespace Sep.Git.Tfs.VsCommon public int ListShelvesets(ShelveList shelveList, IGitTfsRemote remote) { - var shelvesetOwner = shelveList.Owner == "all" ? null : (shelveList.Owner ?? VersionControl.AuthenticatedUser); + var shelvesetOwner = shelveList.Owner == "all" ? null : (shelveList.Owner ?? GetAuthenticatedUser()); IEnumerable shelvesets; try {