跳到主要内容

Visual Studio开发环境配置

简介

本文主要介绍在接入MG Ads SDK时,C#工程的初始配置。

添加引用

下载 MG Ads SDK,解压到项目文件夹中,如dll文件夹。

在项目中添加引用"MiracleGamesAd.dll"。

csharp_addreference.png

编译后事件

在编译后事件中添加命令,将MG Ads SDK中的所有dll文件,生成到编译文件夹中。

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

csharp_event.png