小编ayy*_*eee的帖子

构建失败。检查输出窗口以获取更多详细信息 - C# 发布失败但构建成功

我正在尝试在 Visual Studio 2017 上发布 Web 应用程序。构建成功但发布失败。当它失败时,会出现一个错误对话框,显示“发布遇到错误。构建失败。诊断日志已写入以下位置:..”

这是带有日志的文件包含的内容:

System.AggregateException: One or more errors occurred. ---> System.Exception: Build failed. Check the Output window for more details. --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at Microsoft.VisualStudio.Web.Publish.PublishService.VsWebProjectPublish.<>c__DisplayClass41_0.<PublishAsync>b__2() at System.Threading.Tasks.Task``1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.ApplicationCapabilities.Publish.ViewModel.ProfileSelectorViewModel.<RunPublishTaskAsync>d__116.MoveNext() ---> (Inner Exception #0) System.Exception: Build failed. Check the Output window for …

c# publish build visual-studio

13
推荐指数
3
解决办法
3万
查看次数

标签 统计

build ×1

c# ×1

publish ×1

visual-studio ×1