Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Programming » Database and application deployment » Requirements for deploying client applications » .NET client deployment


ClickOnce and .NET Data Provider unmanaged code DLLs

ClickOnce deployment allows you to publish .NET applications to a web server or network file share for easy installation. Microsoft Visual Studio supports the publishing and updating of applications deployed using the ClickOnce technology.

To assist in the deployment of the unmanaged code portions of the SQL Anywhere .NET Data Provider, a sample deployment application is provided that illustrates how to add DLLs as resources to the .NET application that you need to deploy. Source code for this sample is located in the %SQLANYSAMP16%\SQLAnywhere\ADO.NET\DeployUtility folder.

  • Build.cmd   This batch file shows you how to add the SQL Anywhere .NET Data Provider unmanaged DLLs as resources to your application executable. In particular, it shows you how to add the 32-bit DLLs, dblgen16.dll, dbicu16.dll, and dbicudt16.dll, as resources to a .NET application. This technique can be extended to include the 64-bit versions of the DLLs.

  • Program.cs   This sample program shows you how to access the DLLs as resources attached to your application and write them to a directory where they will be available for use by the SQL Anywhere .NET Data Provider. The technique shown can be embellished to handle both 32-bit and 64-bit DLLs.