解决了。 我的解决方案:生成->清理->重建
我已经托管了我的网站,现在我正尝试使用VS的“发布”功能通过VS2017上传网站的文件。我正确设置了与主机的连接(验证连接成功..)。但是当VS尝试上传我的文件时,它说:
Unable to add 'Content/homePage.css' to the Web site. Unable to parse server response to PASV command.
此错误消息针对我的网站中的每个文件显示。以上只是此类消息的示例。我正在使用FTP发布方法。我的主机是000webhost
诊断日志:
15/07/2018 08:56:08
System.AggregateException: One or more errors occurred. ---> System.Exception: Publish failed due to build errors. Check the error list 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.VisualStudio.Web.Publish.PublishService.VsWebProjectPublish.<>c__DisplayClass40_0.<PublishAsync>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.VisualStudio.ApplicationCapabilities.Publish.ViewModel.ProfileSelectorViewModel.<RunPublishTaskAsync>d__88.MoveNext()
---> (Inner Exception #0) System.Exception: Publish failed due to build errors. Check the error list for more details.<---
===================