Estoy intentando publicar una aplicación de consola autónoma dotnet core utilizando la edición comunitaria Visual Studio 2017.
Cuando llego al paso en el que solo necesito hacer clic en publicar, todo parece estar bien durante unos 10 a 15 segundos y luego aparece una ventana con el siguiente mensaje de error.
Publish has encountered an error.
Publishing failed.
A diagnostic log has been written to the following location:
.....AppData\Local\Temp\tmp343.tmp
Luego voy a ese archivo y este es el mensaje...
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.<---
Normalmente no le pediría a nadie que echara un vistazo a los registros por mí, pero eso no me dice mucho. Me preguntaba si alguien más tuvo un problema similar y pudo resolverlo.
Además, como alguien podría preguntar, puedo crear y ejecutar la aplicación con éxito. Lo he implementado antes. Recientemente hice algunos cambios en la aplicación, pero nada significativo. Solo para estar seguro, incluso cambié de rama a una aplicación publicable conocida e intenté publicar esa versión. El mismo problema. Estoy pensando que tiene algo que ver con VS. ¿Pensamientos?