在指定的输出路径上未生成的项目(在解决方案内)的输出dll [英] Output dll for a project (within a solution) not generated on the specified output path

查看:65
本文介绍了在指定的输出路径上未生成的项目(在解决方案内)的输出dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


这个问题与以下主题有一些关系:


https://social.msdn.microsoft .COM /论坛/ vstudio / EN-US / e180cdd4-4161-4e00-84c1-529364ab04ea /只-LIB-文件中生成的 - 不DLL文件?论坛= vclanguage#774a821e-1ae2-4425-B22F-38349abaf283


我的环境


我有一个带有C / C ++代码的VS 2013项目解决方案(从VS6转换而来)


我的解决方案有多个项目,我只关注2个项目 - Proj_dll& Proj_exe生成dll& exe文件分别作为输出。


问题描述


当我尝试重建Proj_dll(生成  dll文件)时,没有显示错误&安培;输出窗口显示已在指定输出路径内生成的dll。但是,即使在搜索完整台机器后,我也找不到任何此类dll;


观察


1。在Debug文件夹和& ;;中也只生成了Lib文件。不在链接器指定的路径中 - >一般 - >输出文件或配置属性 - >一般 - >输出目录,输出文件,输出扩展组合


2。还生成了Proj_exe的可执行文件,我认为这是因为包含了一些Proj_exe作为Proj_dll的依赖项


我已经尝试过自我排除故障的步骤


1。尝试更改目录输出文件生成的位置(在链接器和配置属性下),怀疑某些权限/路径名称问题


2。尝试更改构建的配置


3。尝试更改不同的构建选项,例如(使用  MFC作为标准Window Library e.t.c)


我的怀疑


1。为什么dll& lib文件不是在指定的输出目录中生成的(这里.dll根本没有生成& .lib也是在Debug /目录中生成的,而不是在 链接器中指定的输出文件夹内 - > General
- >输出文件)


2。如果我的一个依赖项目导致某些问题,可能会出现此问题。从而阻止.Lib生成后的最终dll生成?。 


如果是,那么当我尝试从Project中删除构建的依赖项时 - >项目依赖关系 - >依赖关系,我收到错误"这个依赖项是由项目系统添加的&不能删除"。


我知道有些事情干扰了我最后创建dll时的步骤。我只是想了解一些关于"某事"的信息。


我对以上任何疑问的评论/建议/答案表示赞赏。


解决方案

我建​​议您从解决方案中删除这两个问题项目。 然后,使用Visual Studio将新的空项目添加到解决方案中,每个项目对应于已删除的每个问题项目。 将问题项目中的现有源代码和资源从
添加到解决方案中新创建的项目中。 重建。

Hi All,

This question has some relationship with the below thread:

https://social.msdn.microsoft.com/Forums/vstudio/en-US/e180cdd4-4161-4e00-84c1-529364ab04ea/only-lib-file-is-generated-not-dll-file?forum=vclanguage#774a821e-1ae2-4425-b22f-38349abaf283

My environment

I have a VS 2013 project solution(converted from VS6) with C/C++ code

My solution has multiple projects of which I am concerned about only 2 - Proj_dll & Proj_exe which generates dll & exe files as outputs respectively.

Issue Description

When I try to Rebuilt the Proj_dll (to generate  dll file), no error is shown & the output window displays the dll has been generated inside the specified output path. But I am unable to find any such dll even after searching my entire machine 

Observations

1. Only the Lib file is generated that too in the Debug folder & not in the paths specified under Linker -> General -> Output File or Configuration Properties -> General - > Output directory, Output File, Output Extension combination

2. Executable for Proj_exe is also generated which I believe is due to some inclusion of Proj_exe as a dependency for Proj_dll

Steps I already tried for self-troubleshooting

1. Tried changing the directory Locations for Output file generation (both under Linker & configuration Properties) suspecting some permission/path name issues

2. Tried changing the built configurations

3. Tried changing the different built options like (Using  MFC as standard Window Library e.t.c)

My Doubts

1. Why the dll & lib files are not generated in the specified output directory (here .dll is not at all generated & .lib too is generated in the Debug/ directory & not inside the output folder as specified in the Linker -> General -> Output File)

2. Can this issue occur if one of my dependent project is causing some issue & thus preventing the final dll generation after the .Lib generation ?. 

If yes, then when I try to remove the built dependencies from Project - > Project Dependencies - > dependencies, I am getting the error "This dependency was added by the project system & cannot be removed".

I know something is interfering with the steps during my final dll creation & I am just trying to get some info about that "something"

Comments/suggestions/answers to any of my above doubts is highly appreciated.

解决方案

I suggest that you remove the two problem projects from the solution.  Then, use Visual Studio to add new empty projects to the solution, one for each of the problem projects that were removed.  Add the existing source code and resources from the problem projects to the newly created projects in the solution.  Rebuild.


这篇关于在指定的输出路径上未生成的项目(在解决方案内)的输出dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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