microsoft / azure-devops-dotnet-samples

.NET/C# samples for integrating with Azure DevOps Services and Azure DevOps Server
https://docs.microsoft.com/azure/devops/integrate
MIT License
522 stars 518 forks source link

TfvcHttpClient CreateChangesetAsync large changeset #277

Open AlirezaKhorram opened 4 years ago

AlirezaKhorram commented 4 years ago

I am using TfvcHttpClient to checking some changes to a remote VSTS. when the Changeset is small (for example 1 or 2 MB), there is no Problem with the CreateChangesetAsync and the changeset will be created in Target. the Problem occurs only when the Changesets are larger than 2 MB, that takes more than 1:40 minutes. Sometimes we get error about TimeOut, or sometimes we get error about the Size. (When it is larger than 26 MB.). Does CreateChangesetAsync handels large changesets? I have tried custom HttpClient, with that in place, i get no TimeOut but the Size Limit! i think the Problem is the VSTS and there is no settings to make configurations. is there any Limitation on that? if so, How Visual Studio make this? is there any sample of the Technology used by Visual Studio?

mvarblow commented 4 years ago

I was told by MS support that this is a known limitation of the service. I created a feature request. Please upvote the feature request if this limitation is problematic for you. https://developercommunity.visualstudio.com/idea/1130401/allow-creating-large-tfvc-changesets-via-the-api.html

mvarblow commented 4 years ago

Visual Studio doesn't use the REST API. It probably uses the old SOAP API, which does support larger changesets.

See: