Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
MD 2.8.1 building MonoTouch 5.0 project.
When I hit build, or debug, or run, it rebuild my project every time.
Then, because it takes so long to build, I might check something else, and not notice that its finished building, so then the debugger times out.
So then I hit "debug" and it builds the f***** code again.
You can imagine that this is somewhat frustrating.
Maybe one of the input files has a write time in the future, therefore it will always be newer than the output?
FWIW, in MD build preferences you can disable the "build before run" behaviour.
>Maybe one of the input files has a write time in the future
Maybe MD could tell me what is causing the build to happen, and then I could find that one file out of a thousand that has its write time in the future?
Here's the thing: 2.8 - no problem. 2.8.1 - rebuilds all the time. That was the only thing that changed.
Thanks, that helped narrow it down. I've identified an incorrect change in MD 2.8.1 that broke build dependency checking for libraries with content files.
I can confirm that reverting that commit fixes the issue in the test project mentioned in comment #2.
Thanks for confirming. I've reverted the change and the issue should be resolved in MD 2.8.2.
Thanks. I went back to 2.8.0 for now.
*** Bug 1853 has been marked as a duplicate of this bug. ***
Still happens, XS rebuilds the package every time I hit F5 even if no change has been made
That's just how MSBuild works. The old build system was not based on MSBuild, so it would try to figure out if it needed to build or not. This is no longer the case as we use msbuild/xbuild now.
Surely you can do a quick time stamp check of all the files involved before handing over to MSBuild if needed
Ms build does those time stamp checks as it runs the tasks. If the time stamps have not changed, then the task no-ops.
As a user I think there is room for a very useful optimization that will benefit many others. How? - I leave to the XS developers. :-)