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
- In your project's root folder, create a directory named
SDK. - Copy the following files from your
now2sdkWindows build release into theSDKfolder: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
- Open your project in Visual Studio 2022.
- Right-click on References (Başvurular) in the Solution Explorer and select Add Reference... (Başvuru Ekle...).
- Click Browse (Gözat), locate the
SDKfolder inside your project, selectNow2Media.SDK.dlland click Add. - Set Copy Local (Yereli Kopyala) to
Truein the DLL properties.
3. Copy Unmanaged Runtime DLLs
[!IMPORTANT] Visual Studio's Copy Local feature only copies the referenced
Now2Media.SDK.dllwrapper. The unmanaged C++ DLLs inside theSDKfolder must be copied to the output folder dynamically.To automate this inside Visual Studio:
- Add the
SDKfolder directly into your Visual Studio project tree (Solution Explorer).- Select the
SDKfolder, and in the properties pane, set Copy to Output Directory (Çıktı Dizinine Kopyala) toCopy always (Her zaman kopyala).
⚙️ Compilation Target (x64)
[!IMPORTANT] The unmanaged
now2sdk.dllcore library is compiled as a 64-bit (x64) binary. You must change your project's active compilation target configuration tox64in Visual Studio (Build -> Configuration Manager). Left atAny CPUorx86will throw aBadImageFormatException.