IDS Peak comfortSDK, genericSDK, AFL, ICL, and IPL developer manuals are external documents.
Please contact us if you need these manuals.
C# bindings: Use NuGet to get the C# bindings of IDS peak: https://www.nuget.org/profiles/IDS_Imaging
How to install the C# bindings for IDS peak is described in the ReadMe file.
|
Note: With the switch to NuGet, the namespaces were renamed to follow C# conventions. You find migration tables in the ReadMe file of the respective NuGet package, see https://www.nuget.org/profiles/IDS_Imaging. The following examples use the namespace as it was used up to IDS peak 2.19. |
If you need to configure a project in Visual Studio manually, perform the following steps:
1.Create a project in Visual Studio.
2.Insert additional references (right-click References in project folder explorer):
$(IDS_PEAK_GENERIC_SDK_PATH)\api\binding\dotnet\x86_64\ids_peak_dotnet.dll;$(IDS_PEAK_GENERIC_SDK_PATH)\ipl\binding\dotnet\x86_64\ids_peak_ipl_dotnet.dll;$(IDS_PEAK_GENERIC_SDK_PATH)\afl\binding\dotnet\x86_64\ids_peak_afl_dotnet.dll
3.Open the project properties by double-clicking "Properties" in the project folder explorer.
4.Correct the target platform in the "Build" tab.
5.Define the post-build event by command line in the "Build Events" tab:
copy "$(IDS_PEAK_GENERIC_SDK_PATH)\api\lib\x86_64\*.dll " "$(TargetDir)"
copy "$(IDS_PEAK_GENERIC_SDK_PATH)\api\binding\dotnet\x86_64\*.dll " "$(TargetDir)"
copy "$(IDS_PEAK_GENERIC_SDK_PATH)\ipl\lib\x86_64\*.dll " "$(TargetDir)"
copy "$(IDS_PEAK_GENERIC_SDK_PATH)\ipl\binding\dotnet\x86_64\*.dll " "$(TargetDir)"
copy "$(IDS_PEAK_GENERIC_SDK_PATH)\afl\lib\x86_64\*.dll " "$(TargetDir)"
copy "$(IDS_PEAK_GENERIC_SDK_PATH)\afl\binding\dotnet\x86_64\*.dll " "$(TargetDir)"
Fig. 303: References
Fig. 304: Target platform
Fig. 305: Build events
Test the configuration with a short test code, e.g.
Program-cs (genericC#) |
|---|
using System; |