我在Azure Devops中建立了一个新的构建和部署管道。它是一个较旧的Web应用程序,其中包含一些用于web.config的转换文件。过去,我们会根据多少个环境来构建相同的代码x次。正如我从这里阅读的那样,这不再是必需的https://docs.microsoft.com/zh-cn/azure/devops/pipelines/tasks/transforms-variable-substitution?view=vsts#xmltransform
看来部署管道可以从我的转换文件中获取更改。
但是问题是我的其他转换文件没有包含在包中,所以我收到了以下警告消息:
[warning]Unable to apply transformation for the given package. Verify the following.
[warning]1. Whether the Transformation is already applied for the MSBuild generated package during build. If yes, remove the <DependentUpon> tag for each config in the csproj file and rebuild.
[warning]2. Ensure that the config file and transformation files are present in the same folder inside the package.
Run Code Online (Sandbox Code Playgroud)
是的,当我下载工件时,Web。[stage] .config文件不存在建议的位置。
是否有一些设置可以让我包含这些文件?还是阻止他们转型?
azure-devops azure-pipelines azure-pipelines-release-pipeline