Я пытаюсь подключиться к моей учетной записи Visual Studio Online через web api. Следуя приведенным здесь шагам:
NetworkCredential netCred = new NetworkCredential(
"[email protected]",
"mypassword");
BasicAuthCredential basicCred = new BasicAuthCredential(netCred);
TfsClientCredentials tfsCred = new TfsClientCredentials(basicCred);
tfsCred.AllowInteractive = false;
TfsTeamProjectCollection tpc = new TfsTeamProjectCollection(
new Uri("https://myaccount.visualstudio.com/DefaultCollection"),
tfsCred);
tpc.EnsureAuthenticated();
Console.WriteLine(tpc.InstanceId);
Однако я получаю следующее сообщение об ошибке:
TF30063: у вас нет доступа к доступу .visualstudio.com