.NET SDK Version 3.0

Hi,

I'm using FinalBuilder 5.0.0.201.  I have .NET SDK Version 2.0 and 3.0 installed.  My Default .NET SDK Version in FinalBuilder Options is selected v2.0.

Now, I have 2 different FinalBuilder projects - one requires .NET SDK v2.0 and the other v3.0.  When I build, it will default to v2.0 on both projects.  How can can I avoid this when I'm building on these 2 projects on the same machine?  Is there a way to select the version of .NET SDK for each project?

Thanks,

-Wei

Hi Wei,

Thanks for your post. There are two ways to do this.

1) Most actions which use the .NET SDK allow you to choose to either use the Default version (set in the options), or a specific version. So you can always just change each action to use the SDK version that you want.

2) You can use script to change the default version on the fly. The SDK version is stored as a string. Put some code like this into a script event.

DotNetOptionsObject.DefaultSDKVersion = ‘v2.0’;

or

DotNetOptionsObject.DefaultSDKVersion = ‘v3.0’;

(Omit the semicolon if you’re usingVBScript. Unfortunately, code completion for the DotNetOptionsObject appears to be broken, so you won’t see this parameter in the code completion prompt.)

Regards,

Angus

Just something else to bear in mind here, the .NET 3.0 SDK is just a bunch of assemblies, it does not install any tools and relies on the .NET 2.0 SDK tools instead. So in most instances there is no real need to select .NET 3.0 in FinalBuilder.