$(SolutionDir) - undefined

I have a VS2008 solution that copies files from one folder to another once the compilation has completed, and this works fine within the IDE, but run from Finalbuilder I get an error (see attachment) indicating that the macro $(SolutionDir) is undefined.

It works fine with the $(ProjectDir) macro.

Here is the content of the relevant section of the project file:

 
   copy "$(SolutionDir)GestionNetConfiguracion\bin\Debug\GestionNet.Configuracion.dll" "$(ProjectDir)bin\Debug" /Y
copy "$(SolutionDir)GestionNetConfiguracion\bin\Release\GestionNet.Configuracion.dll" "$(ProjectDir)bin\Release" /Y
 
 

Is this a problem I can fix or is it something Finalbuilder does not handle?

Regards,

Martin.

FinalBuilder1.jpg

Hi Martin,

Which action are you using to build the project? If you're using the MSBuild action then make sure you're building the solution not the individual project. If you're using the VS.NET action then make sure you've selected 'All Enabled Projects' rather then the 'All Projects in Solution' as the later simply iterates (in correct dependency order) over the projects in the solution and calls MSBuild on each of them, which means the solution isn't being built by MSBuild.

Update:

I've updated the VS.NET action so that it sets the SolutionDir property to the solution path, we'll have a new build available soon.


Regards,
Paul.

Paul:

Thanks for the update.

Yes, I am selecting individual projects in the solution, not all of them so this update will help me. Will you advise me when it is available?

Regards

Martin.

Hi Martin

Here is the build :

https://www.finalbuilder.com/downloads/finalbuilder/630/FB630_2049.exe

Wow, now that's service... with a smile

Thanks very much,

Martin.

We’ve been having the same issue on our site and this build fixed the issue. Will a full release with this fix be available soon? I’d rather not be running a special release like this.

Thanks.

Hi Vincent,

Is there a corresponding update for FinalBuilder Server?  I have FB Server 6.3.0.773, will that support the $(SolutionDir) macro?

thanks,

Chris Miller

Hi Chris,

As FinalBuilder Server uses FinalBuilder as the build engine you only need to update FinalBuilder on the build machine, no updates are required for FinalBuilder Server for this fix.

Regards,
Paul.

Hi Phil,

We don’t have a set date of when the next official build will be released.