Problems with macro expansion of DevEnvDir for sln2005 build runner

Hi all,

I'm trying to convert from using a homebuilt continous integration system to use TeamCity, but I have not been able to setup my project so that it compiles.

The project is a C# project, and I try to use the sln2005 build runner to build it.

In a few of the projects within the solution file there is a post-build event that has this format:

"$(DevEnvDir)\..\..\SDK\v2.0\Bin\sn" -Vr "$(TargetPath)"

but it seems that TeamCity cannot expand the DevEnvDir macro (the TargetPath macro expands fine)

Here is the error I get when running the build:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3090, 13): error MSB3073: The command ""*Undefined*\..\..\SDK\v2.0\Bin\sn" -Vr "D:\TeamCity\buildAgent\work\eefbdc179805b02e\Debug\CoreLib.dll"" exited with code 3.

Does anybody know how to work around this?

Sorry if this is already asked and answered here in this forum, but I was unable to find a search tool to search it. Please point me in the rigth direction if that is the case

Olav

1 comment
Comment actions Permalink

Seems that your pervious build system used to define DevEnvDir environment variable or msbuild property.You can redefined the same property under TeamCity build configuration. Please open '6.Properties+and+environment+variables' tab of build configuration settings and define there system propertry called DevEnvDir with value %system.VS2005_Path%.
For details, please have a look to related documentation pages at
http://www.jetbrains.net/confluence/display/TCD4/6.Properties+and+environment+variables
http://www.jetbrains.net/confluence/display/TCD4/Referencing+Properties

Thanks!

0

Please sign in to leave a comment.