2014-08-27 30 views
1

我希望查看Microsoft網站上提供的「Microsoft圖表控件的示例環境」代碼。然而,當我嘗試建立該項目,以創造一個exe文件,我可以打開,我得到以下錯誤:「Microsoft圖表控件的示例環境」無法編譯

Cannot write to the output file "obj\Release\System.Windows.Forms.DataVisualization.Charting.Utilities.SampleMain.VerticalTabPageButton.resources". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

我失去了一些東西在這裏?我該如何瀏覽這組樣本?

哦,我手動編輯.sln文件,以便它在VS2008中打開。但我認爲這與我的問題沒有任何關係。

回答

0

當試圖解壓縮「Microsoft Enviroment for Microsoft Chart Controls.zip」文件時,我遇到了同樣的問題。

我試圖解壓縮到我的「Documents \ Visual Studio 2010 \ Project」文件夾。很明顯,這個文件夾在PC上的目錄結構上很差,所以我收到了同樣的錯誤。

因此,解決方案是:將文件解壓縮到相當高的PC目錄結構 - 例如,C盤的根目錄,即「c:\」。

然後,您會發現不會收到「Path Too Long」錯誤消息。

祝福, Mike。