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 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.
Created attachment 15940 [details]
Inconsistency vs. other C# project types: "Copy if newer" setting causes iOS project to run build targets on every build attempt
## Steps to replicate
1. Open the attached test case in Visual Studio. (Tested in Visual Studio 2015 Update 2.)
2. Ensure XamarinVS is connected to a Mac build host.
3. Build the "UnifiedSingleViewIphone1" project in the "Debug|iPhone" configuration.
4. Once the build completes, build the project again without cleaning (for example, select "Build > Build UnifiedSingleViewIphone1" from the menus).
The project builds again every time because the "copy to output file" is "missing":
> Project 'UnifiedSingleViewIphone1' is not up to date. Copy to output file 'C:\source\CopyIfNewerAlwaysBuilds\UnifiedSingleViewIphone1\bin\iPhone\Debug\text\TextFile1.txt' missing from output location.
> ------ Build started: Project: UnifiedSingleViewIphone1, Configuration: Debug iPhone ------
## Expected results
The "ConsoleApplication1" project in the attached test case demonstrates the expected behavior. The `TextFile1.txt` file is copied to the output location on the first build, and subsequent builds _skip_ the build targets entirely because the outputs are already up-to-date:
> ========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
## Version info (brief)
Visual Studio 2015 Update 2
XamarinVS 22.214.171.1242 (fb9e9f3)
Windows 10 (64-bit)
Xamarin.iOS 126.96.36.1994 (cycle7: 6950f7b)
Xcode 7.3, Build version 7D175
OS X 10.11.4
I've moved this issue over to VSTS for further tracking:
If you're interested in continuing to follow the status of this issue, please click the 'Follow' button on the bug in VSTS. In the future, please feel free to file bugs via aka.ms/xvs-bug, which feeds into our new bug tracker in VSTS.
Thanks again for reporting this issue! <3