更改工作项的最大附件大小
Azure DevOps Server 2020 |Azure DevOps Server 2019 |TFS 2018
默认情况下,Azure DevOps Server将工作项附件的大小限制为 60 MB。 可以使用 Web 服务将附加到最多 2GB 的文件大小增加。
如果你不是 Team Foundation Administrators 组的成员, 请添加为一个。
登录到Azure DevOps Server的应用程序层服务器。
在受支持的 Web 浏览器中,打开以下 URL:
http://localhost:8080/DefaultCollection/WorkItemTracking/v1.0/ConfigurationSettingsService.asmx?
http://localhost:8080/tfs/DefaultCollection/WorkItemTracking/v1.0/ConfigurationSettingsService.asmx?op=SetMaxAttachmentSize
如果项目位于其他项目集合上,请指定集合的名称代替 DefaultCollection。
输入大小(以字节为单位),然后选择 “调用”。
可以指定的最大大小为 2 GB (或
2000000000
) 。
增加附件大小的替代解决方案
增加附件大小会增加存储中的数据量以及保存工作项所需的时间。 若要解决大小限制问题,请将附件添加到源代码管理中,并使用版本控制链接类型将工作项中的链接添加到源代码管理文件中。
联邦信息处理标准 (FIPS) 异常
如果收到类似于下面列出的错误消息,则可能需要禁用 FIPS 服务以避免异常。 若要了解详细信息,请参阅系统加密:在 Windows XP 和更高版本的 Windows 中使用符合 FIPS 的算法进行加密、哈希和签名“安全设置效果。
Application: csc.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
at System.Security.Cryptography.SHA256Managed..ctor()
Exception Info: System.Reflection.TargetInvocationException
at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
at System.Reflection.RuntimeConstructorInfo.Invoke(System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
at System.Security.Cryptography.CryptoConfig.CreateFromName(System.String, System.Object[])
at System.Security.Cryptography.SHA256.Create()
at Microsoft.CodeAnalysis.CommandLine.DesktopBuildClient.GetBasePipeName(System.String)
at Microsoft.CodeAnalysis.CommandLine.DesktopBuildClient.GetPipeNameForPath(System.String)
at Microsoft.CodeAnalysis.CommandLine.DesktopBuildClient.GetSessionKey(Microsoft.CodeAnalysis.CommandLine.BuildPaths)
at Microsoft.CodeAnalysis.CommandLine.BuildClient.RunCompilation(System.Collections.Generic.IEnumerable`1<System.String>, Microsoft.CodeAnalysis.CommandLine.BuildPaths, System.IO.TextWriter)
at Microsoft.CodeAnalysis.CommandLine.DesktopBuildClient.Run(System.Collections.Generic.IEnumerable`1<System.String>, System.Collections.Generic.IEnumerable`1<System.String>, Microsoft.CodeAnalysis.CommandLine.RequestLanguage, Microsoft.CodeAnalysis.CommandLine.CompileFunc, Microsoft.CodeAnalysis.IAnalyzerAssemblyLoader)
at Microsoft.CodeAnalysis.CSharp.CommandLine.Program.Main(System.String[], System.String[])
at Microsoft.CodeAnalysis.CSharp.CommandLine.Program.Main(System.String[])