.wpp.targets已发布到服务器 [英] .wpp.targets is published to server

查看:111
本文介绍了.wpp.targets已发布到服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的build& publish命令:

Here's my build&publish command:

MSBuild.exe D:\github\myProj\myProj\myProj.vbproj /p:PublishProfile=myProj.pubxml /p:DeployOnBuild=true

这是我的文件结构:

为什么我的myProj.wpp.targets被忽略,甚至发布到服务器上?

Why is my myProj.wpp.targets ignored, and even published to server?

如果其中包含错误,则至少不应发布.

If it contained errors, it shouldn't at least be published.

我的项目是asp.net 3.5 Visual Basic.我真的被困住了.导致解决方案的第一个/最佳技巧将得到奖励.

My project is asp.net 3.5 visual basic. I am really stuck. First/best tip that leads to solution will be rewarded.

推荐答案

尝试在build& command MSBuild.exe命令的末尾添加以下内容:

Try to add the following at the end of your build&command MSBuild.exe command:

/p:WebPublishPipelineCustomizeTargetFile=<path-to.targets-file>

适合您的情况:

/p:WebPublishPipelineCustomizeTargetFile=D:\github\myProj\myProj\myProj.wpp.targets

我希望这会起作用!

这篇关于.wpp.targets已发布到服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆