Visual studio Visual Studio 2019赢得';不发表

Visual studio Visual Studio 2019赢得';不发表,visual-studio,.net-core,Visual Studio,.net Core,我在VS2019中运行一个.Core项目已经有一段时间了,我一直在构建和发布,但突然之间就不再发布了。我已卸载并重新安装,但出现了相同的错误。 因此,我深入研究了堆栈跟踪/日志,我没有发现问题所在 System.AggregateException: One or more errors occurred. ---> System.Exception: Publish has encountered an error. We were unable to determine the ca

我在VS2019中运行一个.Core项目已经有一段时间了,我一直在构建和发布,但突然之间就不再发布了。我已卸载并重新安装,但出现了相同的错误。

因此,我深入研究了堆栈跟踪/日志,我没有发现问题所在

System.AggregateException: One or more errors occurred. ---> System.Exception: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log 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.Publish.Framework.Model.DefaultPublishSteps.<>c__DisplayClass26_0.<IsBuildCompletedSuccessfully>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.Publish.Framework.Model.DefaultPublishSteps.<DefaultCorePublishStep>d__23.MoveNext()
--- 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.Publish.Framework.ViewModel.ProfileSelectorViewModel.<RunPublishTaskAsync>d__213.MoveNext()
---> (Inner Exception #0) System.Exception: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details. <---

System.Exception: Publish has encountered an error. We were unable to determine the cause of the error. Check the output log for more details. 
System.AggregateException:发生一个或多个错误。-->System.Exception:发布遇到错误。我们无法确定错误的原因。有关更多详细信息,请查看输出日志。
---内部异常堆栈跟踪的结束---
位于System.Threading.Tasks.Task.ThrowifeException(布尔值IncludeTaskCanceledException)
在System.Threading.Tasks.Task.Wait(Int32毫秒计时,CancellationToken CancellationToken)
在Microsoft.Publish.Framework.Model.DefaultPublishSteps.c__DisplayClass26_0.b__2()中
在System.Threading.Tasks.Task`1.InnerInvoke()中
在System.Threading.Tasks.Task.Execute()中
---来自引发异常的上一个位置的堆栈结束跟踪---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
在Microsoft.Publish.Framework.Model.DefaultPublishSteps.d_u23.MoveNext()中
---来自引发异常的上一个位置的堆栈结束跟踪---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)
在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
在Microsoft.Publish.Framework.ViewModel.ProfileSelectorViewModel.d_u213.MoveNext()中

--->(内部异常#0)系统。异常:发布遇到错误。我们无法确定错误的原因。有关更多详细信息,请查看输出日志。“生成输出”窗口是否显示任何内容?@ESG Its有2个警告,但仍然可以正常运行和生成。您使用的VS版本是什么?您的.NET Core项目的目标框架版本是什么?@Lex Li VS 2019 version 16.4.1试图发布Core 2.2.NET Core 2.2的版本即将到期,因此VS最新更新似乎禁用了某些东西。我仍然可以在本地将.NET Core 2.2发布到一个文件夹,您也可以尝试,但我想如果您想发布到Azure App Service之类的东西,它可能会失败。