简体   繁体   English

Visual Studio无法在运行时查找.dll

[英]Visual Studio Not Finding .dll At Runtime

I am writing a program in C# with Visual Studio 2013 that builds on another program I wrote. 我正在使用Visual Studio 2013在C#中编写一个程序,它基于我编写的另一个程序。 In development everything appears to be fine; 在开发过程中,一切似乎都很好; I added a reference in my current program to the previous program and it picks up everything as expected. 我在当前程序中添加了一个引用到之前的程序,它按预期选择了所有内容。 However, at runtime it throws a FileNotFound exception saying it can't find the program I am trying to build on top of even though the dll of the program I am trying to run and the program I am trying to reference are in the same directory and the reference is added properly. 但是,在运行时它抛出一个FileNotFound异常,说它无法找到我试图构建的程序,即使我试图运行的程序的dll和我试图引用的程序在同一目录中并正确添加引用。

在此输入图像描述

在此输入图像描述

您需要将所有dll的CPU类型更改为任何dll

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM