Set Configuration Property Of Build VS.NET Solution action at Runtime based on Solution File Type

Dear Team,

In my project folder structure - I have a Src folder. This Src folder contains no. of solution files (.sln). A .sln file can belongs to SSIS projects set, A web projects set, A WCF projects set or A SQL Server database projects set.

I am using File / FileSet Interator to get all solution file details by poiniting my Src folder. Now I want to compile each and every solution file one by one using Build VS.NET Solution action. Consider that each solution type has different configuration settings like Release|Any CPU , Development|Any CPU etc.

Now I want to change configuration setting of Build VS.NET Solution action at run time based on solution file type. How I can achive this? Consider that I can't create a common configuration for all solution type.

I attached a screen shot of action sequence.

It would be great  if you can reply earliest with proper example because We have to give Final Builder demo to our configuration management team to automate the process of compilation and deployment.

Action sequence is attached.

You can changed properties of the VS.NET action using FinalBuilder variables and the BeforeAction script event of that action, e.g :

[code] //javascriptAction.SolutionConfiguration = FBVariables.Configuration;[/code]

How you detect what type of solutions they are I have no idea, you would probably need to parse the solution file somehow.

It’s not always possible to create a generic project that will just know how to build anything… there are too many variables involved, you may be better off creating a project that is specifically tailored to the solutions you want to build.