2009年2月8日日曜日

xbuild

csproj は、msbuild 形式なんで、xbuild を使うらしい。
monodevelop だと意識する事ないけど、
monodevelop入ってない mini9 の環境だと、コマンドから build したい。

xbuild hoge.csproj
MSBUILD: error MSBUILD00000: Imported project: "/Microsoft.Csharp.targets" does not exist.
となる。

ふーむ。locate Microsoft.Csharp.targesしてみたら、
/usr/lib/mono/2.0/
の中にある。
hoge.csproj の中を見る。
なにやら、関係がありそーな行が。
export MSBuildToolsPath=/usr/lib/mono/2.0/
とかすると、xbuild出来ました。

0 件のコメント: