laptop and a wrench

Bug

Unable to build the Interactive SDK Samples(http://help.arcgis.com/en/webapi/silverlight/samples/start.htm) if the unzipped path has folders with spaces

Last Published: August 25, 2014 ArcGIS API for Silverlight
Bug ID Number NIM060849
SubmittedSeptember 2, 2010
Last ModifiedJune 5, 2024
Applies toArcGIS API for Silverlight
Version found2.0
Program languageAll
Operating SystemWindows OS
Operating System VersionXP
Version Fixed2.0
StatusFixed

Additional Information

Download fixed

Workaround

To resolve the issue(folders with spaces) , the POST-BUILD EVENT Command has to be modified as below. In other words, for "xcopy" command, %%I should be defined as "%%I"(double quotes are introduced)POST-BUILD EVENT Command (C# Solution)@echo ------ Copy xaml files to ArcSDKWeb -------cd "$(ProjectDir)"for /R "$(ProjectDir)" %%I in (*.xaml) do (xcopy "%%I" "$(SolutionDir)\ArcGISSilverlightSDKWeb\Assets\Source\" /C/I/R/Y)for /R "$(ProjectDir)" %%I in (*.xaml.cs) do (xcopy "%%I" "$(SolutionDir)\ArcGISSilverlightSDKWeb\Assets\Source\" /C/I/R/Y)for /R "$(SolutionDir)\VBNet\ArcGISSilverlightSDK\" %%I in (*.xaml.vb) do (xcopy "%%I" "$(SolutionDir)\ArcGISSilverlightSDKWeb\Assets\Source\" /C/I/R/Y)@echo ------ Delete xaml files copied from ArcSDK root folder -------for %%I in (*.xaml) do (del "$(SolutionDir)\ArcGISSilverlightSDKWeb\Assets\Source\%%~nI%%~xI")for %%I in (*.xaml.cs) do (del "$(SolutionDir)\ArcGISSilverlightSDKWeb\Assets\Source\%%~nI%%~xI")@echo ------ Rename xaml.cs to xaml.cs.txt files in ArcSDKWeb -------for /R "$(SolutionDir)\ArcGISSilverlightSDKWeb\Assets\Source\" %%I in (*.xaml.cs.txt) do (del "%%I")for /R "$(SolutionDir)\ArcGISSilverlightSDKWeb\Assets\Source\" %%I in (*.xaml.cs) do (rename "%%I" "%%~nI%%~xI.txt")for /R "$(SolutionDir)\ArcGISSilverlightSDKWeb\Assets\Source\" %%I in (*.xaml.vb.txt) do (del "%%I")for /R "$(SolutionDir)\ArcGISSilverlightSDKWeb\Assets\Source" %%I in (*.xaml.vb) do (rename "%%I" "%%~nI%%~xI.txt")POST-BUILD EVENT Command (VB.NET Solution)@echo ------ Copy xaml files to ArcSDKWeb -------cd "$(ProjectDir)"for /R "$(ProjectDir)" %%I in (*.xaml) do (xcopy "%%I" "$(SolutionDir)\ArcGISSilverlightSDKWeb\Assets\Source\" /C/I/R/Y)for /R "$(ProjectDir)" %%I in (*.xaml.vb) do (xcopy "%%I" "$(SolutionDir)\ArcGISSilverlightSDKWeb\Assets\Source\" /C/I/R/Y)@echo ------ Delete xaml files copied from ArcSDK root folder -------for %%I in (*.xaml) do (del "$(SolutionDir)\ArcGISSilverlightSDKWeb\Assets\Source\%%~nI%%~xI")for %%I in (*.xaml.vb) do (del "$(SolutionDir)\ArcGISSilverlightSDKWeb\Assets\Source\%%~nI%%~xI")@echo ------ Rename xaml.vb to xaml.vb.txt files in ArcSDKWeb -------for /R "$(SolutionDir)\ArcGISSilverlightSDKWeb\Assets\Source\" %%I in (*.xaml.vb.txt) do (del "%%I")for /R "$(SolutionDir)\ArcGISSilverlightSDKWeb\Assets\Source\" %%I in (*.xaml.vb) do (rename "%%I" "%%~nI%%~xI.txt")

Steps to Reproduce

Bug ID: NIM060849

Software:

  • ArcGIS API for Silverlight

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options