【问题标题】:VB Express 2010 Could not find a file I no longer want to findVB Express 2010 找不到我不想再找到的文件
【发布时间】:2020-07-25 21:28:33
【问题描述】:

我已将这些文件复制到我的项目的 My Project 目录中以将它们作为程序集引用,但我不再希望它们在该目录中,因为当我发布我的项目时,我得到了一组警告说这些程序集被错误地指定为文件。

我怎样才能摆脱这些错误?

Error   4   Could not find file 'My Project\DotNetOpenAuth.dll'.    MiPro
Error   5   Could not find file 'My Project\GDrive.Explorer.exe'.   MiPro
Error   6   Could not find file 'My Project\GDrive.Framework.dll'.  MiPro
Error   7   Could not find file 'My Project\Google.Apis.Authentication.OAuth2.dll'. MiPro
Error   9   Could not find file 'My Project\Google.Apis.dll'.   MiPro
Error   8   Could not find file 'My Project\Google.Apis.PlatformServices.dll'.  MiPro
Error   21  Could not find file 'My Project\log4net.dll'.   MiPro
Error   12  Could not find file 'My Project\Microsoft.Threading.Tasks.dll'. MiPro
Error   10  Could not find file 'My Project\Microsoft.Threading.Tasks.Extensions.Desktop.dll'.  MiPro
Error   11  Could not find file 'My Project\Microsoft.Threading.Tasks.Extensions.dll'.  MiPro
Error   13  Could not find file 'My Project\Newtonsoft.Json.dll'.   MiPro
Error   17  Could not find file 'My Project\System.Net.Http.dll'.   MiPro
Error   14  Could not find file 'My Project\System.Net.Http.Extensions.dll'.    MiPro
Error   15  Could not find file 'My Project\System.Net.Http.Primitives.dll'.    MiPro
Error   16  Could not find file 'My Project\System.Net.Http.WebRequest.dll'.    MiPro
Error   18  Could not find file 'My Project\System.Runtime.dll'.    MiPro
Error   19  Could not find file 'My Project\System.Threading.Tasks.dll'.    MiPro
Error   20  Could not find file 'My Project\Zlib.Portable.dll'. MiPro
Message 3   Could not find schema information for the attribute 'sku'.  C:\Users\admin\documents\visual studio 2010\Projects\MiPro\MiPro\app.config 23  43  MiPro
Message 2   Could not find schema information for the attribute 'version'.  C:\Users\admin\documents\visual studio 2010\Projects\MiPro\MiPro\app.config 23  28  MiPro
Message 1   Could not find schema information for the element 'supportedRuntime'.   C:\Users\admin\documents\visual studio 2010\Projects\MiPro\MiPro\app.config 23  11  MiPro

另外,我收到一条错误消息,上面写着Application validation did not succeed.

可能的原因是什么?

【问题讨论】:

    标签: vb.net winforms visual-studio-2010 publish


    【解决方案1】:
    1. 转到项目属性(解决方案资源管理器 - 屏幕最右侧或最左侧的窗口;右键单击最顶层目录:项目名称;选择属性)
    2. 转到发布部分
    3. 选择 Application Files 并排除您不想要的文件,然后就可以使用了。

    如果有人有更好和更具描述性的解决方案,请上传。我会接受的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-12-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-10
      • 1970-01-01
      相关资源
      最近更新 更多