【问题标题】:Error while creating package for uwp为 uwp 创建包时出错
【发布时间】:2016-06-14 01:22:09
【问题描述】:

我正在使用 C# 和 Visual Studio 2015 Community for windows 10 开发一个应用程序。

我试图为商店创建一个包(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 

我该如何解决这个问题?

注意:我有个人帐号用于开发

【问题讨论】:

    标签: win-universal-app windows-10


    【解决方案1】:

    我自己没有收到此错误,但您应该确认您已安装最新的 Windows 10 SDK 和最新的 VS2015 更新。

    • Visual Studio 2015 Update 2 上周刚刚发布:https://www.visualstudio.com/en-us/news/vs2015-update2-vs.aspx

    • 当您启动 VS2015 时,请检查右上角的通知区域是否有任何新的可用更新。

    • 当您单击文件 |新 |在 VS2015 中进行项目,查看通用项目模板类型列表,查看是否有列表项提示您下载最新的 SDK。

    下面的屏幕截图显示了模板类型以及我可以使用的(可选)Template10。如果您没有最新的 SDK,您应该会看到一个额外的条目,提示您下载最新的 SDK(而不是创建新项目)

    在确认您拥有最新的所有内容后,请尝试再次生成一个新包,并请在下方发表评论,让我们知道它是否有效(或者您是否仍然遇到错误)。

    【讨论】:

    • 感谢您的回复,太好了,已更新到 Update 2 并且运行良好!我在打开 Package.appxmanifest 时遇到问题,当我打开 Package.appxmanifest 时它让我停止工作,但在更新到更新 2 后,一切正常。非常感谢
    • 很高兴听到这个消息! :)
    猜你喜欢
    • 2017-01-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-11
    • 2017-04-11
    • 2018-11-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多