2016-03-01 79 views
0

創建包我開發的C#&的Visual Studio 2015年社區爲Windows 10錯誤而UWP

我試圖創建一個包店(appxupload文件),但它給了我錯誤的應用程序:

Loading assembly "C:\Users\Ramtin\.nuget\packages\System.Private.Uri\4.0.0\runtimes\win8-aot\lib\netcore50\System.Private.Uri.dll" failed. System.IO.FileNotFoundException: Could not load file or assembly 'System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. 



Invalid Resx file. String reference not set to an instance of a String. 
Parameter name: suffix MyAPP C:\Users\Ramtin\.nuget\packages\System.Private.Uri\4.0.0\runtimes\win8-aot\lib\netcore50\System.Private.Uri.dll 

http://s7.picofile.com/file/8241354442/Capture.JPG

我怎樣才能解決這個問題?

注:我個人賬戶的發展

回答

0

我還沒有收到這個錯誤我自己,但你應該確認您有最新的Windows SDK 10和安裝最新的VS2015更新。

  • 的Visual Studio 2015年更新2剛出來的時候,上週:https://www.visualstudio.com/en-us/news/vs2015-update2-vs.aspx

  • 當您啓動VS2015,檢查通知區域右上方任何新的可用更新。

  • 當您單擊文件|新增|在VS2015項目中,查看通用項目模板類型列表,並查看是否有列表項提示您下載最新的SDK。

我的屏幕截圖顯示了模板類型以及我可用的(可選的)Template10。如果你沒有最新的SDK,你應該看到一個額外的條目,提示你下載最新的SDK(而不是創建一個新項目)

在驗證你有最新的一切後,嘗試生成一個新的軟件包,請在下面評論,讓我們知道它是否工作(或者如果你仍然有錯誤)。

Windows 10 Project templates

+0

謝謝您的回覆,這是偉大的,更新到Update 2和正常工作!我在打開Package.appxmanifest時遇到了問題,它使我在打開Package.appxmanifest時停止工作,但在更新到更新2後,一切正常。非常感謝 – Ramtin

+0

聽到這真是太棒了! :) –