Welcome to Macrobject Community Login | Register | Faq  

    Macrobject Community
  Macrobject Software Knowledge Management and Collaboration Platform
Search    
   

Integration with MSBuild
Started by waspy at 12-15-2009 12:39 PM. Topic has 22 replies.

Print Search « Previous Thread Next Thread »
  12-15-2009, 12:39 PM
waspy is not online. Last active: 1/18/2011 7:07:41 PM waspy

Top 10 Posts
Joined on 12-15-2009
Posts 16
Integration with MSBuild
Reply Quote
Hello All,

We tried integration with MSBuild running with the account we used to register the Word-2-CHM. No luck so far.. it is just hanging doing nothing... What is the way to check the error log? Can Word-2-CHM be integrated with MSBuild?

Regards,
Alex
   Report 
  12-15-2009, 8:05 PM
Peter is not online. Last active: 10/31/2011 9:51:29 AM Peter

Top 10 Posts
Joined on 09-27-2007
Posts 171
Re: Integration with MSBuild
Reply Quote
Hi Alex,

Yes, it can.
What is the command line you are using in MSBuild?
Please see online document for using Word-2-CHM command line: http://www.macrobject.com/en/word-2-chm/doc2008/topics/UsingCommandLine.htm

Regards,
Peter
   Report 
  12-16-2009, 5:57 AM
waspy is not online. Last active: 1/18/2011 7:07:41 PM waspy

Top 10 Posts
Joined on 12-15-2009
Posts 16
Re: Integration with MSBuild
Reply Quote
Hi Peter,

We've created the following batch file called CompileDocumentation.bat that is called by TFSBuildService:

set word2chm="C:\Program Files (x86)\Macrobject\Word-2-CHM 2009\Word-2-CHM.exe"
%word2chm% /pFile=%1 /pOutPath="C:\Program Files\MyProgram\Help\" /pAuto=true /pOverwrite=true

In MSBuild definition we have the following target:

 <Target Name="GenerateDocumentation">
<BuildStep Message="Compiling Help Projects"
TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
BuildUri="$(BuildUri)"
Condition=" '$(IsDesktopBuild)' != 'true' ">

<Output TaskParameter="Id" PropertyName="HelpGenerationId" />
</BuildStep>

<Exec Command="CompileDocumentation.bat &quot;$(SolutionRoot)\MyProgram\Help\ProgramHelp.word2chm&quot;" />

<!-- If no error, mark this build step as succeeded -->
<BuildStep TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
BuildUri="$(BuildUri)"
Id="$(HelpGenerationId)"
Status="Succeeded"
Condition=" '$(IsDesktopBuild)' != 'true' " />

<OnError ExecuteTargets="HelpGenerationFailed" />
</Target>


When the process starts it invokes the Word application but doesn't produce any output and doesn't terminate.

Kind regards,
Alex
   Report 
  12-16-2009, 8:26 AM
Peter is not online. Last active: 10/31/2011 9:51:29 AM Peter

Top 10 Posts
Joined on 09-27-2007
Posts 171
Re: Integration with MSBuild
Reply Quote
Hi Alex,

1. Does the command works in Windows Scheduled Task?
2. Invokes Word-2-CHM in MSBuild without the auto flag. Does it work when you click the Create button?

Regards,
Peter
   Report 
  12-17-2009, 1:37 AM
waspy is not online. Last active: 1/18/2011 7:07:41 PM waspy

Top 10 Posts
Joined on 12-15-2009
Posts 16
Re: Integration with MSBuild
Reply Quote
Hello Peter,

Yes eveything works perfectly fine... It only hangs when called from TFSBuildService.

Regards,
Alex
   Report 
  12-17-2009, 6:46 AM
Peter is not online. Last active: 10/31/2011 9:51:29 AM Peter

Top 10 Posts
Joined on 09-27-2007
Posts 171
Re: Integration with MSBuild
Reply Quote
We’ll try to test it in the TFS environment.  We’ll get back to you once we get any result.

Regards,
Peter
   Report 
  01-04-2010, 2:49 PM
waspy is not online. Last active: 1/18/2011 7:07:41 PM waspy

Top 10 Posts
Joined on 12-15-2009
Posts 16
Re: Integration with MSBuild
Reply Quote
Dear guys,

Are there any updates on the issue?

Regards,
Alex
   Report 
  01-05-2010, 1:52 AM
Peter is not online. Last active: 10/31/2011 9:51:29 AM Peter

Top 10 Posts
Joined on 09-27-2007
Posts 171
Re: Integration with MSBuild
Reply Quote
Sorry for the delayed response. We had never used TFS before. It took us some time to create the environment.
Now we have reproduced the problem by invoke MSBuild from a background service.
We are now trying to locate the issue and fix it. Please be patient.

Regards,
Peter
   Report 
  01-06-2010, 8:28 PM
Peter is not online. Last active: 10/31/2011 9:51:29 AM Peter

Top 10 Posts
Joined on 09-27-2007
Posts 171
Re: Integration with MSBuild
Reply Quote
We’ve release an update version. It passed the tests in our TFS environment.
Please try it and let us know if the issue is fixed, thank you.

Download it at: http://www.macrobject.com/en/word-2-chm/download.htm

Regards,
Peter
   Report 
  01-07-2010, 1:56 AM
waspy is not online. Last active: 1/18/2011 7:07:41 PM waspy

Top 10 Posts
Joined on 12-15-2009
Posts 16
Re: Integration with MSBuild
Reply Quote
Dear Peter,

I have downloaded and installed the latest build 2009.2.107.2268, but the issue still remains (the same behaviour - hanging in memory). I don't see any logs or errors displayed, therefore I can't send you any debugging information unfortunately.

Regards,
Alex
   Report 
  01-07-2010, 7:05 AM
Peter is not online. Last active: 10/31/2011 9:51:29 AM Peter

Top 10 Posts
Joined on 09-27-2007
Posts 171
Re: Integration with MSBuild
Reply Quote
Hi Alex,

We have emailed a debug version to you. Please check your email.

Regards,
Peter
   Report 
  01-08-2010, 7:22 AM
waspy is not online. Last active: 1/18/2011 7:07:41 PM waspy

Top 10 Posts
Joined on 12-15-2009
Posts 16
Re: Integration with MSBuild
Reply Quote
Dear Peter,

I have send you the logs via e-mail...

Thank you,
Alexei
   Report 
  01-09-2010, 7:11 AM
Peter is not online. Last active: 10/31/2011 9:51:29 AM Peter

Top 10 Posts
Joined on 09-27-2007
Posts 171
Re: Integration with MSBuild
Reply Quote
Hi Alexei,

We found an exception in the log file:

-EXP:W12.0.4518,,W1@5,F|Ope,WordUtils0.Close,This command is not available because no document is open

The message says that Microsoft Word cannot find the file and no document is opened.
Where are the .word2chm and the .docx files in? Is the .docx accessible in that situation?
Please try Word-2-CHM command line with /pFile=“the .docx file” directly and let us know the result, thanks.

Best Regards.
Peter L.

   Report 
  01-11-2010, 12:23 AM
waspy is not online. Last active: 1/18/2011 7:07:41 PM waspy

Top 10 Posts
Joined on 12-15-2009
Posts 16
Re: Integration with MSBuild
Reply Quote
Dear Peter,

It does work if the source file is a document (unfortunately we use add-ons and custom theme:)). So the problem is pretty clear then...
If Word-2-Chm project has a relative path to the document (all in current directory) and it is called by external application (TFSBuildService in our case) then this path is resolved as relative to the caller, not to the Word-2-Chm project (which is sent as a parameter).

Thank you very much for the great support and looking forward to the fix...

P.S. I think it would be a valuable feature to let the program finish execution and handle all the exceptions logging them in a separate file (otherwise the whole build just hangs). Console mode would be ideal of course...

Regards,
Alexei
   Report 
  01-11-2010, 7:10 AM
David is not online. Last active: 11/17/2011 8:07:51 AM David

Top 10 Posts
Joined on 01-26-2008
Posts 193
Re: Integration with MSBuild
Reply Quote
Please install the latest version and try again:
  http://www.macrobject.com/en/downloads.htm

Please add /pQuiet=true;Debug=true to the parameter of command line.

   Report 
Post
 Page 1 of 2 (23 items) 1 2 »
Macrobject Comm... » Help Authoring ... » Word-2-CHM Conv... » Integration with MSBuild

Powered by Community Server, by Telligent Systems