azure-devops - Azure DevOps ClickOnce Build&Release publish.htm missing
问题描述
at the moment I am trying to build and release a ClickOnce application on a subfolder of an Azure AppService. So far, the deployment of the binaries works quite well. At the moment what is missing is the pulish.htm, which provides the download page for the ClickOnce application.
As build arguments I hand over the following:
/target:publish /p:ApplicationVersion=$(AssemblyVersion) /p:PublishURL=http://[URL_to_ClickOnce-Download] /p:UpdateEnabled=true /p:UpdateMode=Foreground /p:CreateWebPageOnPublish=true /p:WebPage="publish.htm" /p:IsWebBootstrapper=true
What i am mostly missing is a documentation of the allowed/possible build arguments in the MSBuild-task in Azure Devops. That's the reason why I am asking here - has anyone an idea what am I missing here?
In case you need additional information, please don't hesitate to ask me.
Thank you very much in advance and kind regards
mdie80
解决方案
在下面的类似线程中有解决方案。
根据上述解决方案,您需要在 .csproj 文件中定义自定义 Msbuild 目标,以将 publish.htm 复制到发布文件夹。并在您的管道 msbuild 任务中将目标指定为自定义目标(即。/target:DoPublish
)到参数。
推荐阅读
- tensorflow - 如何将 LSTMCell 权重格式从 tensorflow 更改为 tf.keras
- python - 捕获所有出现的模式,直到第一次出现 Python 中的单词
- google-apps-script - 为什么这个函数没有在 Google 表格中返回任何内容?
- python - convert a text list into list on python
- java - 如何使用 graphql-java 从请求标头设置上下文
- linq - 在具有多个连接的 Linq 查询中对列进行分组时遇到问题
- ios - 当我通过 OpenGLES 自定义 imageView 时出了什么问题?
- c# - 在 App Insights 中似乎看不到自定义遥测
- objective-c - 将 SQLite 的 NSString 结果转换为格式化的 NSDate
- javascript - 扩展面板组标题和迭代子对象