64 bit Server target, development on 32 bit OS
Background: I'm developing an ASP.NET web application that will developed in Visual Studio 2010 on Windows XP 32 bit OS (company standard, cannot change). The target server is a Windows 2008 Server 64 bit (IIS 7). The application will be referencing an unmanaged dll (Oracle ODP.NET, 11.2) that has both 32 bit and 64 bit versions.
Question: In general, what is the best appr开发者_如何学Gooach to develop a .NET application that references an unmanaged dll that has both 32 bit and 64 bit versions from a 32 bit OS development environment that deploys to a 64 OS? One solution mentioned was to switch to 32 bit mode in IIS, but I would like to keep the performance gain from the 64 bit driver.
If the name of the DLL is the same for 32 and 64 bit, then just write it for 32, but when deploying for 64 bit, just use the right DLL. It should just work assuming the library used IntPtr for the right things.
精彩评论