tfsbuild - TFS Build 中的 TxTextControl 许可证问题

标签 tfsbuild azure-pipelines txtextcontrol

以下是我在 VSTS 上构建应用程序所遵循的步骤 部署在集成分支上。

由于 VSTS 中的构建因未安装许可证而失败 在构建机器上,我们遵循此 link 中提到的步骤.

  1. 我们从自定义文件夹 ex 中引用了以下程序集 C:\CustomFolder\bin
    TXTextControl.Server.dll
    TXTextControl.dll
    TXDocumentServer.dll

  2. licenses.licx 中有以下条目

    TXTextControl.ServerTextControl, TXTextControl.Server    
    
  3. 这是我运行的用于创建许可证资源的命令

    D:\MyAssembly\bin> LC /target: MyAssembly.Net.dll  /complist:..\licenses.licx  outdir:..\  /i:"D:\MyCustomFolder\bin\TXTextControl.Server.dll" 
    

Microsoft (R) .NET License Compiler [Microsoft .Net Framework, Version 4.6.1055.0] Copyright (C) Microsoft Corporation. All rights reserved.

Processing complist '../licenses.licx'... Creating Licenses file ../\MyAssembly.net.dll.licenses...

但这似乎对我在这里做错的事情不起作用……。

最佳答案

我能够通过使用许可证编译器并向资源添加逻辑名称以删除添加到资源的命名空间来解决此问题。

这是针对嵌入式资源的修复。

 <EmbeddedResource Include="myassembly.net.dll.licenses">
   <LogicalName>MyAssembly.Net.dll.licenses</LogicalName>
 </EmbeddedResource>

关于tfsbuild - TFS Build 中的 TxTextControl 许可证问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44676453/

相关文章:

docker-compose - 如何使用 yq 删除 YAML 文件中的属性?

azure - 在 DownloadBuildArtifact 任务中找不到下载的工件

java - Android从网站下载txt而不去除包装

powershell - 为什么自定义构建过程模板执行 PowerShell 失败

asp.net-mvc - 使用 TFS 2015 Build 构建和部署 Web 应用程序

azure-devops - Azure DevOps yaml 管道 : how to know which branch is being checked out?

button - 如何根据条件将禁用按钮变成启用按钮

unit-testing - TFS 2010 Build 中的单元测试 Assets

unit-testing - 学习 MSBuild 的最佳资源有哪些?