生成项目后未创建DLL [英] No DLL is created after building the project

查看:75
本文介绍了生成项目后未创建DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经在Win Service解决方案中添加了一个新项目.这是一个简单的EventLogger类库,只有一个类.问题是,没有在项目bin/debug文件夹中创建DLL文件(未使用发行版).仅创建了一个.exe文件.在本地计算机上运行时,它可以正常工作,但是当我尝试在服务器上运行它时,出现以下错误消息:

WRN:程序集绑定日志记录已关闭.
若要启用程序集绑定失败日志记录,请将注册表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog](DWORD)设置为1.
注意:与程序集绑定失败日志记录相关的性能损失.
要关闭此功能,请删除注册表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog].

为什么没有创建任何DLL文件?

谢谢,
Suunker

Hi,

I''ve added a new project to my Win Service solution. It''s a simple EventLogger class library that only has one class. The problem is, no DLL file has been created in the project bin/debug folder(not using release). Only an .exe file has been created. It works fine when running on my local machine, but when I try to run it on the server I get the following error message:

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Why hasn''t any DLL file been created?

Thanks,
Suunker

推荐答案

任何应用程序都不会创建dll.例如,如果您添加一个控制台应用程序并进行构建(调试或发布),则它将永远不会创建dll文件. DLL文件是使用类库创建的.因此,如果您观察到Windows应用程序,控制台应用程序等...(创建二进制文件)不会创建dll文件.
Any application does not create a dll. For example, if you add a console application and build it (Debug or Release), it will never create a dll file. Dll file gets created with class libraries. So, if you observe a windows application, console application etc...( which creates binaries) does not create dll files.


啊,项目被配置为控制台应用程序,而不是类图书馆.现在可以了!
谢谢!
Ahh, the project was configured as a Console app, not class library. Now it works!
Thanks!


这篇关于生成项目后未创建DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆