简体   繁体   中英

run project c# with .dll embebed, works if run from VS2010, dont works from executable

i have one project in c#, in the project i add a file.dll, this work when i run the program from VS2010, but when i try to run form /bin/debug/myproject.exe it doesn't work, and just fail when the program use the file.dll
i tried:
file.dll configure its properties like:
build action: Content
also
build action: Embedded Resource
but still doesn't work...
sorry for my english, hope you can help and understand my problem.

Have you tried the build action: none and copy to output dir: copy always or copy if newer?

Why do you don't add the dll as a reference (copy local: true if needed)? Or do you don't want to use it?

好吧,我发现了问题,我的应用程序通过file.dll与控制台通信,当我从VS运行mi项目时,该控制台是默认打开的,但是当我从/bin/debug/myproject.exe执行该应用程序时,它不会打开任何控制台,所以通讯失败,所以现在我认为解决方案是为此运行在应用程序后面的通讯创建一个控制台

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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