LoginSignup
0

More than 5 years have passed since last update.

XamarinでUnity向けのDLLを作成する覚書

Last updated at Posted at 2016-11-24

UnityはMono3.5以下(?)で作成されたDLLしか対応していない。
そこで、Xamarin StudioでUnity向けにDLLをビルドするには以下の設定が必要になる。

プロジェクトを右クリック>オプション>ビルド>全般を開く。
  ・ターゲットフレームワークに.NET 3.5以下のものを選択
  ・Build Engineの欄の「(このプロジェクトタイプに推奨されている)MSBuildビルドエンジンを使用します」のチェックをはずす。
  
ちなみに、上記のチェックをはずしていないと、次のようなエラーが起きる。
Error: ほにゃらら.csproj could not import "$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets"

スクリーンショット 2016-11-24 14.21.17.png

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0