gpt4 book ai didi

c# - 当 TFS 为构建克隆 git repos 时出现 AppDomainUnloadedException

转载 作者:太空宇宙 更新时间:2023-11-03 15:36:54 24 4
gpt4 key购买 nike

突然,当基于 git 团队项目在 TFS 中排队构建时,我得到以下堆栈跟踪。

Exception Message: Attempted to access an unloaded AppDomain. (type AppDomainUnloadedException) Exception Stack Trace: Server stack trace: at LibGit2Sharp.Core.NativeMethods.git_clone(RepositorySafeHandle& repo, String origin_url, FilePath workdir_path, GitCloneOptions& opts) at LibGit2Sharp.Core.Proxy.git_clone(String url, String workdir, GitCloneOptions& opts) at LibGit2Sharp.Repository.Clone(String sourceUrl, String workdirPath, CloneOptions options) at Microsoft.TeamFoundation.Build.Activities.Git.GitPull.GitClone.GetRepository(String repositoryUrl, String workingFolder, Boolean checkoutSubmodules) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase) at System.Func4.EndInvoke(IAsyncResult
result) at
Microsoft.TeamFoundation.Build.Activities.Git.GitPull.GitRepositoryBase.EndExecute(AsyncCodeActivityContext
context, IAsyncResult result) at
System.Activities.AsyncCodeActivity
1.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

我没有为这件事做任何改变,谷歌搜索到目前为止我发现关于它的信息可能是 macafee,但我们不在我们的构建代理上使用它。

  • 使用本地构建服务器
  • 正常的 TFS 团队项目按预期构建

最佳答案

通过重启服务器解决 - 不知道我是怎么没想到的。

关于c# - 当 TFS 为构建克隆 git repos 时出现 AppDomainUnloadedException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31586815/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com