Visual Studio 2017 コミュニティ エディションを使用して、dotnet core 自己完結型コンソール アプリケーションを公開しようとしています。
公開をクリックするだけの手順に到達すると、約 10 ~ 15 秒間はすべて正常に見えますが、その後、次の失敗メッセージを含むウィンドウがポップアップ表示されます。
Publish has encountered an error.
Publishing failed.
A diagnostic log has been written to the following location:
.....AppData\Local\Temp\tmp343.tmp
次にそのファイルにアクセスすると、次のメッセージが表示されます...
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__127.MoveNext()
---> (Inner Exception #0) System.Exception: Publishing failed.<---
通常、誰かにログを見てもらうように頼むことはありませんが、ログを見てもあまりわかりません。他にも同様の問題を抱えていて、解決できた人がいるかどうか気になっています。
また、誰かが尋ねるかもしれないので、アプリケーションを正常にビルドして実行できます。以前にデプロイしたことがあります。最近、アプリにいくつか変更を加えましたが、大きな変更はありません。念のため、既知の公開可能なアプリにブランチを切り替えて、そのバージョンを公開しようとしました。同じ問題です。VS と関係があるのではないかと考えています。ご意見は?