Skip to main content

Visual Studio Environment Configuration

Introduction

This article mainly introduces the initial configuration of a C# project when integrating the MG Ads SDK.

Adding References

Download the MG Ads SDK and extract it to your project folder, for example, a dll folder.

Add a reference to "MiracleGamesAd.dll" in your project.

csharp_addreference.png

Post-build Event

Add commands to the post-build event to copy all DLL files from the MG Ads SDK to the build output folder.

xcopy /y "$(ProjectDir)dll" "$(OutDir)"
xcopy /yei "$(ProjectDir)dll\runtimes" "$(OutDir)runtimes"

csharp_event.png