Since NET Framework allows an assembly to recognize when running on x86 or
x64 version of windows, the *FirebirdSql.Data.FirebirdClient.dll* could load
the appropriate version of fbembed.dll, firebird.msg, icuuc30.dll etc for
each platform.

This could be done if inside the application's folder is an XML file where
we could enter the paths of the x86 and x64 versions of firebird DLLs. For
example:

*FirebirdSql.Data.FirebirdClient.Options.xml*
<Platform>
   <x86 Path="\x86" />
   <x64 Path="\x64" />
</Platform>

The path could be absolute or relative.


So, if FirebirdSql.Data.FirebirdClient.dll is located in the folder:
*C:\MyApp\*
the appropriate version  of fbembed.dll, firebird.msg, icuuc30.dll etc for
each platform will be located in the folders:
*C:\MyApp\x86*
*C:\MyApp\x64*

That way we could build our applications as *“Any CPU”* which is simpler
than providing two different versions of our applications for each platform.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to