Select to view content in your preferred language

'ESRI.ArcGIS.Client.ScaleBarUnit' is obsolete: 'Please use ScaleLineUnit in the ESRI.

1123
3
Jump to solution
02-01-2012 05:43 AM
ShaningYu
Honored Contributor
Get the warning message: 'ESRI.ArcGIS.Client.ScaleBarUnit' is obsolete: 'Please use ScaleLineUnit in the ESRI.ArcGIS.Client.Toolkit namespace.' for
  MapUnit == ScaleBarUnit.DecimalDegrees  (also many others)
How to change the ScaleBarUnit.DecimalDegrees to ESRI.ArcGIS.Client.Toolkit.ScaleLineUnit.xxxx?
Thanks.
0 Kudos
1 Solution

Accepted Solutions
JenniferNery
Esri Regular Contributor
You don't need to download the entire SDK, you can simply copy-paste to a new Silverlight project that points to the API assemblies. If you have already downloaded the source, then update the project references and point them to API assemblies. Here's a list of installed assemblies: http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Installation/016600000005000000/. During installation you were prompted to provide install location, I think by default it is at C:\Program Files (x86)\ESRI SDKs

View solution in original post

0 Kudos
3 Replies
JenniferNery
Esri Regular Contributor
0 Kudos
ShaningYu
Honored Contributor
1)  I downloaded the InteractiveSDKSource that includes the component I need.  Then I open the sln file, but got failure to build it with 2 errors:
Error 1 Cannot determine the location of the VS Common Tools folder. C:\arcgis\Silverlight\ArcGISSilverlightSDK\EXEC ArcGISSilverlightSDK
Error 2 The command "call "%VS100COMNTOOLS%vsvars32.bat"
rem devenv C:\arcgis\Silverlight\VBNet\ArcGISSilverlightSDK_VBNet.sln /rebuild debug" exited with code -1. ArcGISSilverlightSDK
Q:  How can it be solved?
2)  If I can get the dll for the SDKSource, it will be fine since I can add it it in the reference.  Where can I get the dll?
3)  Or can I just import the ScaleLine component into my project and then use it?
Which option should I use?  Could you make a recommendation?  Thanks.
0 Kudos
JenniferNery
Esri Regular Contributor
You don't need to download the entire SDK, you can simply copy-paste to a new Silverlight project that points to the API assemblies. If you have already downloaded the source, then update the project references and point them to API assemblies. Here's a list of installed assemblies: http://help.arcgis.com/en/webapi/silverlight/help/index.html#/Installation/016600000005000000/. During installation you were prompted to provide install location, I think by default it is at C:\Program Files (x86)\ESRI SDKs
0 Kudos