Bug 22190 - iOS extension adds duplicate contents to Conditional combilation symbols
Summary: iOS extension adds duplicate contents to Conditional combilation symbols
Status: CONFIRMED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.3
Hardware: PC Mac OS
: Normal normal
Target Milestone: Future Cycle
Assignee: vsx
URL:
Depends on:
Blocks:
 
Reported: 2014-08-19 01:40 UTC by Alexey Bogdanov
Modified: 2017-08-07 07:07 UTC (History)
5 users (show)

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

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 for Bug 22190 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:
Status:
CONFIRMED

Description Alexey Bogdanov 2014-08-19 01:40:38 UTC
In MyiOSProject.csproj file I have these conditional compilation constants defined for Ad-Hoc configuration:

<DefineConstants>__IOS__;__MOBILE__;MYCONSTANT</DefineConstants>

The first two are added by default and the third is my custom one.
Next time I open MyiOSProject project properties in Visual Studio (context menu: Properties). Then go to build tab. Choose configuration to Ad-Hoc. In Conditional compilation symbols field I see this: "__IOS__;__MOBILE__;MYCONSTANT;__IOS__;__MOBILE__". So default constants are duplicated.
Comment 1 Ram Chandra 2014-08-22 06:38:11 UTC
I have checked  this issue and I am able to reproduce this issue.

Steps I have followed:

1. Create an iOS SingleViewApplication on VS2013.
2. Open Build option from iOS property window (right click on project => Properties=> Build).
3. Add a new "Conditional Compilation Symbol" to already exits symbol.
                 MYCONSTANT;
4. Close the solution.
5. Reopen the solution.
6. Repeat step 2 and check the values of "Conditional Compilation Symbol".

When I add a new custom symbol in the "Conditional Compilation Symbol" field and then close the solution. When I reopen the solution I observed that  in "Conditional compilation symbols" field  default constants are duplicated like as
"__IOS__;__MOBILE__;MYCONSTANT;__IOS__;__MOBILE__"

I have also check the same without adding a new custom symbol and observed that it is working fine. It doesn't duplicate the default constants.

Screencast: http://www.screencast.com/t/bxZwFsjLOKbN

Environment Info:

Windows Info:

Windows 6.1.7601.65536 (64-bit)
Microsoft Visual Studio Professional 2013
Version 12.0.30501.00 Update 2
Microsoft .NET Framework
Version 4.5.50938
Installed Version: Professional
Xamarin : 3.3.47.0 (0b2a123923812a88ed3091909478dbe9e0111f00)

Mac Info:

Mac OS X 10.9.2
Xcode 5.1.1 (5085)
Xamarin.iOS: 7.2.6.28
Mono 3.8.0 ((no/62a857e)