LoginSignup
0

More than 3 years have passed since last update.

RiderとXamarin.Macでポストビルドイベントを使う方法

Posted at

症状

Visual Studio for MacXamarin.Macプロジェクトに設定したポストビルドイベントがRiderで走らない。

結論

csprojを開き、PropertyGroupの中に、タグを使ってその中でコマンドを定義する。

    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
        <PostBuildEvent>
            some command
        </PostBuildEvent>
    </PropertyGroup>

注意

ビルドコマンド内で$(ProjectDir)を使っていると、なぜか結果が空白になってしまうので、$(MSBuildProjectDirectory)に書き換えると直ります。

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