MSBuild VC Express project on a Hudson server (IncludePath)

I am trying to compile a Visual C ++ 2010 Express solution on Hudson running on Windows Server 2008 R2, but it fails due to the lack of paths included.

For the project, additional directories are required, which are defined in Microsoft.Cpp.Win32.user.props, which is located in %LOCALAPPDATA%\Microsoft\MSBuild\v4.0. When I go to the cd server in the hudson workspace directory and run MSBuild, the project compiles (with the props file, which is in my users localappdata directory). Since the hudson service works like a local system, %LOCALAPPDATA%- C:\Windows\System32\config\systemprofile\AppData\Local\. So I put a copy of the Microsoft.Cpp.Win32.user.props file in C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\MSBuild\v4.0.

When I start building in Hudson (with MSBuild ... / verbosity: diag), I see

UserRootDir = C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\MSBuild\v4.0

but not included paths in IncludePath. When I make the .props file an invalid xml file (which allows manual assembly to fail at the very beginning), the Hudson assembly does not report the failure. MSBuild does not seem to parse the file when it runs in Hudson.

What's going on here? Where should I place the props file, or how can I determine what additional Dirs include?

Yours faithfully...

+3
source share
1 answer

I can recommend manually installing UserRootDir for your Hudson task. For MDBuild, you can set the command line options :

 /p:Configuration=Release;Platform=Win32;UserRootDir=c:\MSBuild
+5
source

All Articles