Bug 10918 - Debugger shows Unknown Identifier for Static/Constant values in Class Libraries
Summary: Debugger shows Unknown Identifier for Static/Constant values in Class Libraries
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: 1.0.x
Hardware: PC Windows
: Normal normal
Target Milestone: 1.2.x
Assignee: Vinicius Jarina
: 11160 ()
Depends on:
Reported: 2013-03-05 15:04 UTC by Daniel
Modified: 2016-05-10 17:03 UTC (History)
12 users (show)

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

Test Project (177.79 KB, application/octet-stream)
2013-03-05 15:04 UTC, Daniel

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 Daniel 2013-03-05 15:04:51 UTC
Created attachment 3538 [details]
Test Project

The debugger shows "Unknown Identifier" for Constants or Static values that exists in classes inside a class library.

It shows the correct value when the "constant" is defined in a class inside the same project.

Steps to reproduce:

- Create new iPhone Project
- Add a new iPhone Library Project to it.
- Create a class with constant or static values inside the class library.
- In the iPhone Project, create a reference to the Library.
- Debug the iPhone Project and try to see the constant values. It will show "Unknown Identifier"

Check this ScreenCast: http://screencast.com/t/KGCoeJzRN
Comment 1 Daniel 2013-03-05 15:06:54 UTC
I am using Visual Studio 2012 Ultimate in Windows 8 Pro x64

Xamarin.iOS version 1.0.897
Comment 2 Vinicius Jarina 2013-05-20 19:19:25 UTC
*** Bug 11160 has been marked as a duplicate of this bug. ***
Comment 3 Vinicius Jarina 2013-05-20 19:20:47 UTC
Fixed master/3e115146141bcbae2b600d30f158baa0fbd1c9b4
Comment 4 narayanp 2013-05-23 10:06:03 UTC
Today we have checked this issue with following build:

VS 2012/2010
MTVS 1.1.200

We observed that for attached project we are getting same behavior. it is showing Unknown Identifier. This is the screencast for the same: http://screencast.com/t/hN3fVkcqIeq

Hence reopening this issue.
Comment 6 narayanp 2013-05-31 08:17:31 UTC
Today we have checked this with new build:

All Windows
VS 2012
MTVS 1.2.103

And we are still seeing as unknown identifier for this attached project this is the screencast for the same: http://screencast.com/t/eDtfrD2pjfc

While on VS 2010 we are not able to open this project we are getting error dialog popup "The selected file is a solution file. but was created by a newer version of this application and can't be opened"

Hence reopening this issue
Comment 7 Vinicius Jarina 2013-06-04 16:56:17 UTC
Hello narayanp

I've tested this issue. And looks like XS have the same issue.


Can you please file another bug, saying VS and XS can't resolve LocalConstants on watch window?

Thank you. :)
Comment 8 Vinicius Jarina 2013-06-04 18:47:00 UTC
Forget comment7, was a typo using XS
Comment 9 Vinicius Jarina 2013-06-06 19:13:11 UTC
Fixed in 75a6eca2
Comment 10 Nischal 2013-06-13 06:10:05 UTC
Today we have checked this issue with following builds

All Windows
VS 2012/2010
iOS for VS - 1.2.121

Now we are not seeing 'Unknown Identifier' for constant values. This is the screencast for the same:

Changing the status of this issue to Verified.