Visual Studio 2017 Community Edition을 사용하여 dotnet 핵심 자체 포함 콘솔 애플리케이션을 게시하려고 합니다.
게시를 클릭하기만 하면 되는 단계에 도달하면 약 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와 관련이 있다고 생각합니다. 생각?