Get latest revision from Visual Studio Online thro

2019-09-17 09:42发布

I am trying to create an automatic "get latest"-routine from our Visual Studio Online repository.

However, I have tried a number of examples but they all return: TF30063: You are not authorized to access https://ourPath.visualstudio.com/DefaultCollection/

I even tried this console app, but it still returns the same error.

I can login through the browser using credentials. I am running out of ideas on how to connect and get the latest code.

1条回答
Deceive 欺骗
2楼-- · 2019-09-17 10:18

If you can log in through the browser using those credentials, then they are not the alternate credentials that should be used in the answer to the question you referenced.

The credentials you typed in the browser is your Microsoft Account (formerly known as your Live ID). This is a shiny browser-based authentication experience that is incompatible with the /login flag to tf.exe.

Instead, you need to set up alternate credentials for your account. However, this does not enable you to use tf.exe, as it does not support them. You will need to use either:

查看更多
登录 后发表回答