【问题标题】:Can't publish .NET Core project for linux-64无法为 linux-64 发布 .NET Core 项目
【发布时间】:2018-05-04 19:37:26
【问题描述】:

每当我尝试为运行 raspbian 的树莓派发布适用于 linux-64 的 c# .NET Core 项目时,都会收到此错误:

04/05/2018 19:26:10
System.AggregateException: One or more errors occurred. ---> System.Exception: Publishing failed.
   --- 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.ApplicationCapabilities.Publish.Model.DefaultPublishSteps.<>c__DisplayClass22_0.<IsBuildCompletedSuccessfully>b__1()
   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.Model.DefaultPublishSteps.<DefaultCorePublishStep>d__19.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.VisualStudio.ApplicationCapabilities.Publish.ViewModel.ProfileSelectorViewModel.<RunPublishTaskAsync>d__108.MoveNext()
---> (Inner Exception #0) System.Exception: Publishing failed.<---

===================

【问题讨论】:

  • 能否请您包括dotnet --info 输出以及您正在使用的dotnet publish 命令。如果您从 VS 发布,请尝试使用dotnet publish从命令行重现问题

标签: c# .net .net-core publish


【解决方案1】:

我可以通过运行以下命令使其工作:dotnet publish linux-arm

【讨论】:

    猜你喜欢
    • 2020-01-23
    • 2019-03-31
    • 2018-06-03
    • 1970-01-01
    • 1970-01-01
    • 2018-03-29
    • 2022-01-25
    • 1970-01-01
    • 2017-04-27
    相关资源
    最近更新 更多