-
Notifications
You must be signed in to change notification settings - Fork 13
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
mdtool: Could not locate executable. #10
Comments
@jzeferino Is |
It ins't in my PATH, but since this is Cake.Xamarin, it would be nice to check if the mdtool was in the common places (in xamarin studio bin for example). So, since the cake could run in (eg: windows, linux, osx) I will have to Register the mdtool.exe when cake runs in the different OS types. And in the windows case, the mdtool.exe ins't shipped with visual studio (with xamarin) that I know. |
@jzeferino Yeah, so the paths change based not just on platform but installation location, IDE version and a bunch of other variables (so even 'Xamarin Studio bin' is not so simple), so you may need to provide it with the path to Unless @Redth know more about resolving |
For now I have this (just to Pack locally): Task("Pack")
.IsDependentOn("Build")
.WithCriteria(() => isLocalBuild)
.WithCriteria(() => HasMdTool())
.Does(() =>
{
MDToolSetup.Pack(binaryPath, artifactsDir);
});
private bool HasMdTool()
{
var mdToolPath = @"/Applications/Xamarin Studio.app/Contents/Resources/lib/monodevelop/bin/mdtool.exe";
if (FileExists(mdToolPath)) {
Information("mdtool exists");
Context.Tools.RegisterFile(mdToolPath);
return true;
}
return false;
} Would like to hear @Redth on this. |
I don't believe I make any current assumptions as to where mdtool exists. Definitely a good idea to at least try for some well known paths. |
On OS X I got this error:
Running:
MDToolSetup.Pack(binaryPath, artifactsDir);
Full stack trace:
The text was updated successfully, but these errors were encountered: