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
上次发布: August 25, 2014ArcGIS API for Silverlight
漏洞 ID 编号
NIM060849
已提交
September 2, 2010
上次修改时间
June 5, 2024
适用范围
ArcGIS API for Silverlight
找到的版本
2.0
编程语言
All
操作系统
Windows OS
操作系统版本
XP
修正版本
2.0
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
附加信息
Download fixed
解决办法
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")