【发布时间】:2015-11-05 19:41:48
【问题描述】:
当我运行 myApp.application 时,安装失败。从日志错误文件中我得到这个:
+ download error file:///C:/Users/userj/Documents/Visual Studio 2013/Projects/foo/foo/bin/x86/Release/ico.ico.deploy.
+ that the file or folder can't be found. 'C:\Users\userj\Documents\Visual Studio 2013\Projects\foo\foo\bin\x86\Release\ico.ico.deploy'.
+ that the file or folder can't be found. 'C:\Users\userj\Documents\Visual Studio 2013\Projects\foo\foo\bin\x86\Release\ico.ico.deploy'.
+ that the file or folder can't be found. 'C:\Users\userj\Documents\Visual Studio 2013\Projects\foo\foo\bin\x86\Release\ico.ico.deploy'.
ico.ico 文件位于服务器和本地文件夹中的 Application Files 文件夹中。那么为什么我会收到这个错误?我错过了什么?
编辑:
为什么 clickonce 期望在根目录而不是 Application Files 文件夹中找到 .deploy 文件?
【问题讨论】:
-
1- 这是安装错误还是应用程序执行错误?您可以肯定地说应用程序安装失败吗? 2- 请告诉我如何将
ico.ico添加到您的项目中以及文件的位置? -
这是一个安装错误,我双击 .application 文件,然后单击 isntall 并得到一个错误说并非所有需要下载的文件都可用,所以我单击详细信息并得到错误消息说找不到那个ico.ico
-
没有看到您的编辑。 ico.ico 文件与应用程序的所有 .cs/.resx 文件一起位于根文件夹中。我可以在 VS 解决方案资源管理器中看到它。
copy to output directory' was set tocopy always -
它是嵌入式资源还是该文件的构建操作是什么? (我想尝试重现问题)
-
没关系,我注意到它不是从服务器下载的,而是从本地文件夹下载的。
标签: c# windows winforms deployment clickonce