【发布时间】:2020-11-22 16:00:35
【问题描述】:
在 Visual Studio 中,我使用 Web Deploy。
在设置中,它要求填写 4 个字段(其中 1 个是可选的)
我猜,在幕后,它正在调用 msdeploy.exe 并将它们作为命令行参数传递
我正在努力将这些映射到我想使用的地方
shell: cmd
run: '"C:/Program Files (x86)/IIS/Microsoft Web Deploy V3/msdeploy.exe"
-verb:sync
-allowUntrusted
-source:contentPath="%CD%\myDomain.Ui\bin\Release\netcoreapp3.1\"
-dest:contentPath=domain,computerName="<server>:443/msdeploy.axd?site=<site name>",username="<user name>",password="<password>",authtype="Basic"'
如您所见,source:contentPath 使用实际路径,这在 GitHub 操作中运行良好。我遇到了dest: 部分的问题。在上面的示例中,我使用了标题(所以我使用了屏幕截图中显示的而不是 myUserName)
我有 2 个问题。
-
当我在 Visual Studio 中单击“发布”时,如果它真的只是在调用 msdeploy.exe,那么是否可以在输出中显示它。如果我知道该怎么做,我也许可以回答我自己的问题
-
我是否正确映射了它们
【问题讨论】:
标签: .net-core github-actions msdeploy