Free now2sdk Core is completely free — no license key required   See what's included →
SDK Modules Docs Release Notes Pricing GitHub
Get the SDK →

Windows Guide

Integrating the now2sdk framework into Windows .NET projects (C# and VB.NET, targeting WinForms and WPF) is extremely straightforward. The SDK provides a compiled managed assembly wrapper (Now2Media.SDK.dll) that bridges C# / VB.NET applications to the high-performance unmanaged C++ core.


📦 Step-by-Step Integration (Visual Studio)

1. Copy SDK Binaries

  1. In your project's root folder, create a directory named SDK.
  2. Copy the following files from your now2sdk Windows build release into the SDK folder:
    • Now2Media.SDK.dll (The managed assembly wrapper)
    • now2sdk.dll (The unmanaged C++ core SDK library)
    • FFmpeg DLLs (avcodec-61.dll, avformat-61.dll, avutil-58.dll, swscale-8.dll, swresample-5.dll)
    • Other runtime dependencies (SDL2.dll, etc.)

2. Add Reference in Visual Studio

  1. Open your project in Visual Studio 2022.
  2. Right-click on References (Başvurular) in the Solution Explorer and select Add Reference... (Başvuru Ekle...).
  3. Click Browse (Gözat), locate the SDK folder inside your project, select Now2Media.SDK.dll and click Add.
  4. Set Copy Local (Yereli Kopyala) to True in the DLL properties.

3. Copy Unmanaged Runtime DLLs

[!IMPORTANT] Visual Studio's Copy Local feature only copies the referenced Now2Media.SDK.dll wrapper. The unmanaged C++ DLLs inside the SDK folder must be copied to the output folder dynamically.

To automate this inside Visual Studio:

  1. Add the SDK folder directly into your Visual Studio project tree (Solution Explorer).
  2. Select the SDK folder, and in the properties pane, set Copy to Output Directory (Çıktı Dizinine Kopyala) to Copy always (Her zaman kopyala).

⚙️ Compilation Target (x64)

[!IMPORTANT] The unmanaged now2sdk.dll core library is compiled as a 64-bit (x64) binary. You must change your project's active compilation target configuration to x64 in Visual Studio (Build -> Configuration Manager). Left at Any CPU or x86 will throw a BadImageFormatException.