-
Notifications
You must be signed in to change notification settings - Fork 565
Remove xabuild from being installed #761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hello! I'm the build bot for the Mono project. I need approval from a Mono team member to build this pull request. A team member should reply with "approve" to approve a build of this pull request, "whitelist" to whitelist this and all future pull requests from this contributor, or "build" to explicitly request a build, even if one has already been done. Additional trigger words are available here. Contributors can ignore this message. |
2 similar comments
|
Hello! I'm the build bot for the Mono project. I need approval from a Mono team member to build this pull request. A team member should reply with "approve" to approve a build of this pull request, "whitelist" to whitelist this and all future pull requests from this contributor, or "build" to explicitly request a build, even if one has already been done. Additional trigger words are available here. Contributors can ignore this message. |
|
Hello! I'm the build bot for the Mono project. I need approval from a Mono team member to build this pull request. A team member should reply with "approve" to approve a build of this pull request, "whitelist" to whitelist this and all future pull requests from this contributor, or "build" to explicitly request a build, even if one has already been done. Additional trigger words are available here. Contributors can ignore this message. |
|
@cra0zy, |
Therein lines the problem/question: For any other That doesn't directly answer what should be done. Arguably, PR #253 should take this logic to heart and not install My current gut feeling -- without too much additional thought -- is that if |
|
My question then is why would you want to install it in a directory where xbuild/msbuild will not pick it up? |
Side-by-side installs. There Can Be Only One installation into an For example: $ make install prefix=/tmp/testing
$ xbuild samples/HelloWorld/HelloWorld.csproj
# will fail; `$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets` doesn't exist
$ /tmp/testing/bin/xabuild samples/HelloWorld/HelloWorld.csproj
# should work |
|
True, but they could just call xbuild with few extra arguments if they need to. xabuild is just a wrapper for xbuild that I don't think should get installed in the system. How about adding an extra argument that allows you to switch installing xabuild if you want to? |
Extra arguments are extra complexity, in terms of documentation. Then again, I want to argue for more magic...which requires more documentation. Hm... What I'm thinking is, instead of removing: Change it to: This would allow |
|
Yea, I got what you requested, I was asking if adding an additional argument variable would have been better.... anyway done :| |
|
My active mono install is in |
There is a way of auto setting XA environmental variables for msbuild/xbuild, create file "~/.config/xbuild/monodroid-config.xml" with the following contents: <?xml version="1.0" encoding="utf-8"?>
<monodroid>
<android-sdk path="/path/to/your/Android/Sdk" />
<!-- Only needs specifying in case one of them is not found in default location -->
<!-- android-ndk path="" -->
<!-- java-sdk path="" -->
</monodroid> |
The xabuild script is really only useful if you want to compile XA project without installing XA into system, if you are already installing it into system, calling xbuild/msbuild works just fine.