且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用 MSBuild 发布 Asp.NET Web 应用程序?

更新时间:2022-11-05 15:19:15

您尝试调用的发布"目标是用于OneClick"部署,而不是用于发布网站...这就是为什么您得到看似奇怪的消息.您可能希望使用 AspNetCompiler 任务,而不是 MSBuild 任务.请参阅 http://msdn2.microsoft.com/en-us/library/ms164291.aspx 有关此任务的更多信息.您的PublishDir"将对应于任务的 TargetPath 属性.

The "Publish" target you are trying to invoke is for "OneClick" deployment, not for publishing a website... This is why you are getting the seemingly bizarre message. You would want to use the AspNetCompiler task, rather than the MSBuild task. See http://msdn2.microsoft.com/en-us/library/ms164291.aspx for more info on this task. Your "PublishDir" would correspond to the TargetPath property of the task.

来源