# Compiling as .NET 1.1 and 2.0

**URL:** https://www.finalbuilder.com/forums/t/compiling-as-net-1-1-and-2-0/372
**Category:** Discussion
**Created:** [February 27, 2007, 4:48am UTC](https://www.finalbuilder.com/forums/t/compiling-as-net-1-1-and-2-0/372 "2007-02-27T04:48:20Z")
**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: [February 27, 2007, 4:48am UTC](https://www.finalbuilder.com/forums/t/compiling-as-net-1-1-and-2-0/372/1 "2007-02-27T04:48:20Z")

</div>

I have a set of Microsoft C# Compiler actions setup and I want to compile each using .NET 1.1 first followed by .NET 2.0.&nbsp; I know I can copy paste the actions and have one group set for .NET 1.1 and a second group for .NET 2.0.&nbsp; But I was wondering if there is a better way.&nbsp; For instance, is there a way I can loop through the group of C# Compiler actions and have a variable (or something similar) set the framework version to 1.1 first time through and 2.0 the second time through?  
  
I’m looking to avoid having to duplicate each C# compiler action for each framework version.  
  
Thanks,  
-KIRBY

---

<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: [February 27, 2007, 8:35am UTC](https://www.finalbuilder.com/forums/t/compiling-as-net-1-1-and-2-0/372/2 "2007-02-27T08:35:11Z")

</div>

Hi  
  
You should be able to do something like this in the BeforeAction script event :  
  
Action.SDKVersion = FBVariables.MyVariable  
  
Then put the actions in an actionlist so you can call them multiple times.  
  
HTH

---

<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: [February 28, 2007, 7:53am UTC](https://www.finalbuilder.com/forums/t/compiling-as-net-1-1-and-2-0/372/3 "2007-02-28T07:53:43Z")

</div>

Sweet! Worked like a charm.   
  
And I learned a whole new aspect of FB…scripting which I have not tried before.   
  
Thanks,  
-KIRBY
