项目的附加包含和启动项目的附加包括之间的冲突 [英] conflict between project's additional includes and startup projects's additional includes

查看:40
本文介绍了项目的附加包含和启动项目的附加包括之间的冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个解决方案中有一个项目列表,其中一个是"FrameworkTest"。是启动项目,它取决于解决方案中的其他项目,其他项目在其属性页面中有额外的包含,而启动
up项目没有这些额外的包含 - 它不需要 - ,如果我单独构建它们,所有项目都会成功构建,但是对于启动项目,当我从其他项目中包含一个文件时,它会导致这个项目 - 我包括的那个 - 到
在构建中失败并给出像这样的编译错误  ; $

I have a list of projects in one solution, one of them "FrameworkTest" is the startup project and it depends on the other projects in the solution, the other projects have additional includes in their property pages while the start up project doesn't have these additional includes - it doesn't need to -, All projects build successfully if I build them alone, But for the startup project when I include a file from the other projects it causes this project - The one I included from - to fail in build and to give compilation error like this 

fatal error C1083: Cannot open include file: '360infrastructure/DisableWarnings.h': No such file or directory

尽管通常当我单独构建它时它可以找到这个.h文件,因为它的路径位于附加包含中,我发现这一点在启动项目附加包括,当我将其更改为与其他项目相同时,一切正常。

despite normally when I build it alone it can find this .h file as its path resides in the additional includes, I found that the point is in the startup project additional includes, when I change it to be the same as the other projects everything works fine.

所以我的问题是,这是合乎逻辑的发生?如何将每个项目的附加包含从另一个中分离出来,这样每个项目都只依赖于其属性页面而不受启动项目的影响,我认为我不需要在启动项目中包含这些额外的

So my question is,  is this logical to happen? how can I separate every project's additional includes from the other so each one of them depends only on its property page and isn't affected by the startup project, I don't think I need these extra includes in the startup project.

推荐答案

嗨Sara Tarek,

Hi Sara Tarek,

此论坛正在讨论Visual Studio WPF / SL Designer,Visual Studio Guidance Automation Toolkit,开发人员文档和帮助系统以及Visual Studio编辑器。

This forum is discussing Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.

您的问题与C ++开发有关我将把这个帖子移到相应的论坛以获得专业答案。

Your issue is related to C++ development I will move this thread to corresponding forum for a professional answer.

此致,

奥斯卡


这篇关于项目的附加包含和启动项目的附加包括之间的冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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