2

TfsTeamProjectCollection古いコンストラクターの代わりが見つかりません。これは私の現在のコードです(動作します):

UICredentialsProvider uiCredentialsProvider = new UICredentialsProvider();
TfsTeamProjectCollection teamProjectCollection = new TfsTeamProjectCollection(new Uri("tpc uri"), new NetworkCredential("username", "pass", "domain"), uiCredentialsProvider);

このコードは、カスタム資格情報が失敗した場合に tfs ログイン ダイアログを表示します。ドキュメントには、このコンストラクターTfsClientCredentialsの代わりにクラスを持つコンストラクターを使用する必要があると記載されています。クラスで
どのように使用できますか?UICredentialsProviderTfsClientCredentials

4

1 に答える 1

0

You could use the TeamProjectPicker class which provides a dialog to select a collection of TeamFoundation projects. Microsoft.TeamFoundation.Client

TeamProjectPicker tfsPP = new TeamProjectPicker(TeamProjectPickerMode.MultiProject, false, new UICredentialsProvider());
tfsPP.ShowDialog();

Also, you could look at the TfsClientCredentials class with the following constructor. You could then pass this object in.

TfsClientCredentials ( WindowsCredential windowsCredential, bool allowInteractive )

于 2013-01-02T20:08:46.117 に答える