更改Visual Studio Online的最大附件大小 [英] Change the maximum attachment size for Visual Studio Online

查看:108
本文介绍了更改Visual Studio Online的最大附件大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改Visual Studio Online的默认最大附件大小(默认为4mb)?

How do you change the default maximum attachment size for Visual Studio Online (default is around 4mb)?

在本地TFS 2015中,您可以使用以下方法中描述的方法来更改最大附件大小: https://msdn.microsoft.com/en-us/library/ms400780.aspx .

In on-premise TFS 2015 you can change the maximum attachment size by using the method described in: https://msdn.microsoft.com/en-us/library/ms400780.aspx.

但是,当使用托管的Visual Studio Online时,此方法不适用.仅可从本地主机访问ConfigurationSettingsService.asmx服务,使用Visual Studio Online时当然是不可能的.

This does, however, not apply when using hosted Visual Studio Online. The ConfigurationSettingsService.asmx service is only accessible from localhost, which of course is not possible when using Visual Studio Online.

我试图在Visual Studio Online的配置中找到该选项,但是没有任何运气.

I have tried to find the option in the configuration of Visual Studio Online but without any luck.

推荐答案

好,Web服务本身是可访问的,并且可以按预期工作.它只是测试表单,仅可用于来自本地计算机的请求.您可以使用任何工具发送适当的呼叫,例如, Postman Chrome扩展程序

Well, the web service itself is accessible and works as expected. It is only the test form which is only available for requests from the local machine. You can use any tool to send proper calls, for example, Postman Chrome extension.

但是,测试表单可以帮助您确定请求的正确格式.请注意,对于任何一种网络方法,它都应该是POST请求.

The test form, however, can help you identify the correct format of the request. Note that it should be POST request for either web method.

这是调用GetMaxAttachmentSize的结果(Ctrl +右键单击图像以在单独的选项卡中查看较大的版本):

Here is the result of a call to GetMaxAttachmentSize (Ctrl + right click the image to see a larger version in a separate tab):

这是SetMaxAttachmentSize调用的外观:

现在,如果再次运行GetMaxAttachmentSize调用,它将返回最大大小的新值-您刚刚设置的值.

Now if you run the GetMaxAttachmentSize call again, it will return the new value for the max size - the one you've just set.

请注意,两个请求中的URL均相同.方法的名称和参数(如果有的话)在请求正文中传递.

Note that the URL is identical in both requests. The name of the method and the parameters (if any) are passed in the request body.

最后,我不必进行某种方式的身份验证即可正常工作.我怀疑是因为运行这些示例时我已经登录到VSO帐户.

Finally, I didn't have to authenticate somehow explicitly for this to work. I suspect that's because I've been logged in to my VSO account while running these samples.

这篇关于更改Visual Studio Online的最大附件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆