Bug 32765 - Conditional compilation symbols are duplicated everytime I reload the project or restart visual studio
Summary: Conditional compilation symbols are duplicated everytime I reload the project...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.9
Hardware: Macintosh Windows
: Normal normal
Target Milestone: 15.5
Assignee: Bugzilla
Depends on:
Reported: 2015-08-04 15:02 UTC by Alexandre Pepin
Modified: 2017-10-24 12:21 UTC (History)
13 users (show)

Tags: NotFixedIn15.4
Is this bug a regression?: No
Last known good build:

Zip Xamarin Logs (1.23 MB, application/octet-stream)
2015-08-06 10:13 UTC, Udham Singh

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 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 Alexandre Pepin 2015-08-04 15:02:43 UTC
Steps to reproduce : 

1. Create a new Unified API iPad project
2. Open the project properties
3. Go to the "Build" tab
4. Uncheck "Define DEBUG constant"
5. Save project
6. Recheck "Define DEBUG constant"
7. Save project
8. Unload project
9. Reload project and go see the "Conditional compilation symbols", they are duplicated

They now duplicate everytime you reload the project or restart visual studio
Comment 1 Udham Singh 2015-08-06 10:13:47 UTC
Created attachment 12382 [details]
Zip Xamarin Logs

I have checked this issue with the help of test steps given in bug description and able to reproduce the reported behaviour. 

Please refer the screencast : http://www.screencast.com/t/gBcrX6pG

Note : I am getting this issue for all iOS template projects (for both Unified and Classic API iPad/iPhone/Universal templates).

Environment Info : 

Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.50938

Installed Version: Professional

Xamarin   3.11.850.0 (5c48f6b)
Xamarin.Android (f98871a95a479f6d71b3067b7e5834d41fcb2118)
Xamarin.iOS (a888f9e906e136062b2de4a6b738787daae4e824)
Comment 2 Ben Beckley 2017-08-01 18:21:06 UTC
I am still able to reproduce this using (ddd8750/d15-4).


env info: https://gist.github.com/BenBeckley/692bbb6e8fd2d33ba945b90d6ebc7fed
Comment 3 Joaquin Jares 2017-08-03 18:33:34 UTC
Fixed via PR to iOS (the bug is on their side): https://github.com/xamarin/xamarin-macios/pull/2430. Needs a CP and a bump on our side.