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

**URL:** https://www.finalbuilder.com/forums/t/set-configuration-property-of-build-vs-net-solution-action-at-runtime-based-on-solution-file-type/2131
**Category:** Discussion
**Created:** [April 23, 2013, 4:20am UTC](https://www.finalbuilder.com/forums/t/set-configuration-property-of-build-vs-net-solution-action-at-runtime-based-on-solution-file-type/2131 "2013-04-23T04:20:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 23, 2013, 4:20am UTC](https://www.finalbuilder.com/forums/t/set-configuration-property-of-build-vs-net-solution-action-at-runtime-based-on-solution-file-type/2131/1 "2013-04-23T04:20:27Z")

</div>

Dear Team,

In my project folder structure - I have a Src folder. This Src folder contains no. of solution files (.sln). A .sln file&nbsp;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&nbsp;/ 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&nbsp; 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.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [April 23, 2013, 4:22am UTC](https://www.finalbuilder.com/forums/t/set-configuration-property-of-build-vs-net-solution-action-at-runtime-based-on-solution-file-type/2131/2 "2013-04-23T04:22:09Z")

</div>

Action sequence is attached.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [April 24, 2013, 12:23pm UTC](https://www.finalbuilder.com/forums/t/set-configuration-property-of-build-vs-net-solution-action-at-runtime-based-on-solution-file-type/2131/3 "2013-04-24T12:23:19Z")

</div>

You can changed properties of the [VS.NET](http://VS.NET) action using FinalBuilder variables and the BeforeAction script event of that action, e.g :   
  
 [code] [//javascriptAction.SolutionConfiguration](https://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.
