2

Here are the steps I followed to build the application on VSTS and deploy on the integration branch.

Since the build was failing in VSTS due license which is not installed on the build machine we followed the steps mentioned in this link.

  1. We have referred the following assemblies from the custom folder ex C:\CustomFolder\bin
    TXTextControl.Server.dll
    TXTextControl.dll
    TXDocumentServer.dll

  2. We have the following entry in the licenses.licx

    TXTextControl.ServerTextControl, TXTextControl.Server    
    
  3. Here is the command I ran to create the licenses resource

    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...

But this seems to be not working anything I am doing wrong here…….

iehrlich
  • 3,572
  • 4
  • 34
  • 43
Nayan
  • 327
  • 6
  • 16
  • Did you contact TX support? It's been years since I've dealt with them but they were helpful then. – Dave S Jun 21 '17 at 16:09
  • I referred to that article and made a test with windows forms application, it builds successfully with Hosted agent. According to your description, it seems that you are using class library, what're detail steps to build project (e.g. add references, Code) – starian chen-MSFT Jun 22 '17 at 06:30
  • I contacted theTxControl Team but the solution suggested by the team is not working for me – Nayan Jun 27 '17 at 09:29

1 Answers1

2

I was able to resolve this issue by using the License compiler and adding logical name to the resource to remove the namespace which was getting added to the resource.

Here is the fix for the embedded resource.

 <EmbeddedResource Include="myassembly.net.dll.licenses">
   <LogicalName>MyAssembly.Net.dll.licenses</LogicalName>
 </EmbeddedResource>
Nayan
  • 327
  • 6
  • 16