Bug 21619 - Every time a make a change in XAML, I get error "Error in custom tool"
Summary: Every time a make a change in XAML, I get error "Error in custom tool"
Status: RESOLVED DUPLICATE of bug 21111
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 5.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Bugzilla
Depends on:
Reported: 2014-07-26 10:07 UTC by Magnus Johansson
Modified: 2014-10-31 05:47 UTC (History)
5 users (show)

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

Logfiles (43.16 KB, application/zip)
2014-07-28 12:43 UTC, Magnus Johansson
Tool Output window (11.43 KB, text/plain)
2014-07-28 12:45 UTC, Magnus Johansson

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:

Description Magnus Johansson 2014-07-26 10:07:10 UTC
Description of Problem:
Every time I make a change to XAML and build, I get "Error in custom tool". Doing a Build right again works.
But as soon as I make a new change, the error appears. 
I always have to build twice.

I can't seem to find any error description on what went wrong in the errors pane.

See screencast: http://www.screencast.com/t/YM5DylNEe0ir

Steps to reproduce the problem:
1. Make a iOS Forms app
2. Add XAML Page
3. Make modification to XAML
4. Compile and observe error

Actual Results:
"Error in custom tool"

Expected Results:
No error

How often does this happen? 
Every time I make a change in XAML

Additional Information:
Second build works fine
Comment 1 Rajneesh Kumar 2014-07-28 03:57:28 UTC
I try to reproduce this issue and not able to reproduce it. I have tried below steps:

1. I created an iOS Forms project.
2. Added XAML Page.
3. Made modification to XAML page.
4. Compile the application.

See screencast: http://screencast.com/t/IEzoa40bW

Environment Info : 
Xamarin Studio Version 5.0.1 (build 3)
Git revision: f94ee866936d25105704eb63728ad5a981eda0a4
Xamarin addins: 1a6044e8321ea07e03a56b5381951686c82fed8b
Comment 2 Magnus Johansson 2014-07-28 04:10:59 UTC
Hi Rajneesh,

Well that's good for you. However, this is not a very professional response from you. You are basically saying "works on my PC" and don't offer me any further advice or suggestions.
I am a paying customer for this product and I am expecting a little bit more than this amateurish quick and naive response.

I would have expected you to at least ask me to send you some log files, or anything.
You perfectly well know that your silly simple repro attempt doesn't reflect a project or solution that is a tad bit more complex than your repro case.

Now, is there anything you want me to send you?

Comment 3 Ram Chandra 2014-07-28 05:42:15 UTC
Hi Magnus,

We are really sorry about the Rajneesh's comment1.

I try to reproduce this issue with the steps mentioned in bug description but I am unable to reproduce this issue. I am able to build the application successfully.

If you have a chance, it might also be helpful to include test sample, build information and XS logs. So that we can reproduce this issue at our end.

You can get build information and XS logs from here:

Build Information : Xamarin Studio=> About Xamarin Studio => Show details => Copy Information

XS Logs: Help => Open log directory => Ide logs (the latest one)

Comment 4 Mikayla Hutchinson [MSFT] 2014-07-28 12:24:35 UTC
For errors in custom tools, please also check the custom tool output pad.
Comment 5 Magnus Johansson 2014-07-28 12:42:28 UTC
I am not sure if I should open a new bug or continue on this, but the error message has now changed from "Error in custom tool" to "Failed to generate file". See screencast and attached log files.

Can't seem to find anything named "custom tool output", only "Tool Output". 
Tool output attached.
Error pad is empty.
Comment 6 Magnus Johansson 2014-07-28 12:43:45 UTC
Created attachment 7508 [details]
Comment 7 Magnus Johansson 2014-07-28 12:45:32 UTC
Created attachment 7509 [details]
Tool Output window
Comment 8 Mikayla Hutchinson [MSFT] 2014-07-29 22:43:19 UTC
Should be fixed in https://github.com/mono/monodevelop/commit/04848d188efe9f5cd168f63ac8138df6a5e4f6f2

The real issue however is bug 21111 - the Forms addin should not be indicriminately setting MSBuild:Compile as the custom tool.
Comment 10 Mohit Kheterpal 2014-10-31 05:47:45 UTC
As per comment 8, the real issue for this error is filed in  bug 21111.

Hence I am marking this issue is duplicate of 21111

*** This bug has been marked as a duplicate of bug 21111 ***