在 VSTS 版本上使用 publishsettings 文件进行 Web 发布

Web Publish using publishsettings file on VSTS Release

是否可以配置release in VSTS only using Web Publish method? I want to use it in a shared host, which I do not have permission to use PowerShell, but I already have a .publishsettings file that I manually use in Visual Studio.

我卡在了设置部署组的步骤中,因为在此共享主机中无法配置它。 "A deployment group is a collection of machines with a VSTS agent on each of them. Each machine interacts with VSTS to coordinate deployment of your app."

有人试过配置这种部署吗?是否可以使用命令行或其他类型的配置来实现?

是的,您可以将明文密码存储在 build/release 的秘密变量中,然后通过 MSBuild 参数 (/p:Password={variable}) 指定密码。

之后您可以在 Visual Studio Build 中指定 public 配置文件(.pubxml 文件而不是 .publishsettings 文件)任务(例如 /p:SkipInvalidConfigurations=true /p:DeployOnBuild=true /p:PublishProfile="{profile name}"