Bug 13209 - Compiling in Xamarin Studio exits with code 126
Summary: Compiling in Xamarin Studio exits with code 126
Status: RESOLVED INVALID
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Mikayla Hutchinson [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2013-07-12 11:21 UTC by Allie Miller
Modified: 2013-12-05 12:51 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Attached csproj file (8.67 KB, application/octet-stream)
2013-07-12 11:21 UTC, Allie Miller
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Allie Miller 2013-07-12 11:21:02 UTC
Created attachment 4335 [details]
Attached csproj file

I have a project that compile fine with xbuild, that doesn't compile properly in Xamarin Studio (include pre and post compilation)and it is an Android C# project. 

When it does compile, the following error occurs:
/Volumes/Dropbox Protected/Developpement
/RabbitMQ/rabbitmq-dotnet-client-master/projects/client/RabbitMQ.Client/RabbitMQ.Client.csproj:
Error: Command '../Apigen/build/bin/rabbitmq-dotnet-apigen.exe
/apiName:AMQP_0_9_1 /n:v0_9_1 ../../../docs/specs/amqp0-9-1.stripped.xml
../../../gensrc/RabbitMQ.Client/autogenerated-api-0-9-1.cs' exited with
code: 126. (RabbitMQ.Client)

The full log can be found here: 
https://www.dropbox.com/s/7fjzciysjqn68rz/Xamarin.7z

Screenshot of project after open too :
https://www.dropbox.com/s/z9fsi09s1xsu8xy/Snap%20Xamarin%20Studio.png


Project replicating issue can be downloaded from below:
https://www.dropbox.com/s/yudynaqnt5cdq86/RabbitMQ.Client.7z

Versioning Information:
=== Xamarin Studio ===

Version 4.0.9 (build 12)
Installation UUID: a9fdef6e-ccdd-44ae-ada3-a3c02f42ffdd
Runtime:
Mono 3.0.12 ((no/d6c5db8)
GTK 2.24.18
GTK# (2.12.0.0)
Package version: 300120000

=== Xamarin.Android ===

Version: 4.7.11 (Indie Edition)
Android SDK:
/Users/administrateur/Library/Developer/Xamarin/android-sdk-mac_x86
Supported Android versions:
2.1 (API level 7)
2.2 (API level 8)
2.3 (API level 10)
3.1 (API level 12)
4.0 (API level 14)
4.0.3 (API level 15)
4.1 (API level 16)
Java SDK: /usr
java version "1.6.0_51"
Java(TM) SE Runtime Environment (build 1.6.0_51-b11-456-11M4508)
Java HotSpot(TM) 64-Bit Server VM (build 20.51-b01-456, mixed mode)

=== Apple Developer Tools ===

Xcode 4.6.2 (2067.2)
Build 4H1003

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Xamarin.iOS ===

Version: 6.3.6.77 (Starter Edition)
Hash: fa63be7
Branch:
Build date: 2013-17-06 20:54:24-0400

=== Build Information ===

Release ID: 400090012
Git revision: f9c5c24e88417feb0319953db6d5fc650d416608
Build date: 2013-06-21 17:34:16+0000
Xamarin addins: 898d8afaabb160c025e21656f1490fa149397bff

=== Operating System ===

Mac OS X 10.8.4
Darwin stephane 12.4.0 Darwin Kernel Version 12.4.0
Wed May 1 17:57:12 PDT 2013
root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64
Comment 1 Mikayla Hutchinson [MSFT] 2013-07-12 23:54:42 UTC
This sample is incomplete; I'm getting:

RabbitMQ.Client.csproj could not import "$(MSBuildCommunityTasksPath)MSBuild.Community.Tasks.Targets" (RabbitMQ.Client)

The exec task that's failing has a $(PropLaunchExe) property expansion in in, which seems to be blank. The result is that the Exec task is trying to run a .exe directly w/o using Mono, which won't work. And looking at RabbitMQ repo, this property comes from a file called Local.props, which must be created manually:

http://hg.rabbitmq.com/rabbitmq-dotnet-client/file/43b04bd4c590/Local.props.example

But your version of the project file has been modified not to import local.props at all:

<!-- AF No more need of local.props -->

So basically, the project is broken.
Comment 2 afalanga 2013-12-05 12:51:58 UTC
Please grad copy of the RabbitMQ client at :
http://www.rabbitmq.com/build-dotnet-client.html

And try to compile. It will be may be more easy that effectively working on a modified version.