Build server failing to build a Cloud Service with a Node.js project

Aug 19, 2014 at 8:11 AM
Hi guys,

Having a bit of an issue when building a solution including an Azure Cloud Service on our TeamCity build server.

The cloud service has two ASP.NET web roles and a Node.js role. It builds fine within VS locally, but when building on our build server we're getting:
error : WAT070 : The referenced assembly C:\TeamCity\buildAgent\work\a1a1a1a1a1a1a1a1\NodejsApp\NodejsApp.exe was not found. Please make sure to build the role project that produces this assembly before building this Windows Azure Cloud Service Project.
I'm not sure why it's expecting an .exe file to be emitted during the Node.js project build.

The project reference within the cloud service is as follows:
<ProjectReference Include="..\NodejsApp\NodejsApp.njsproj">
  <Name>NodejsApp</Name>
  <Project>{5b84f347-2866-40ee-9252-a1a1a1a1a1a1}</Project>
  <Private>True</Private>
  <RoleType>Web</RoleType>
  <RoleName>NodejsApp</RoleName>
  <UpdateDiagnosticsConnectionStringOnPublish>True</UpdateDiagnosticsConnectionStringOnPublish>
</ProjectReference>
The build server is running TeamCity 8.1.3, and has the following installed:
•Visual Studio Express for Web 2013 Update 3
•Windows Azure SDK 2.3
•Node.js 0.10.30
•Microsoft Azure SDK for Node.js 0.8.0
•Node.js Tools for Visual Studio 1.0 beta 2

How can I persuade our build server to build this properly rather than expect the Node.js project to emit an .exe file?

Many thanks,
G