项目属性更改无效 [英] Project property changes not working

查看:81
本文介绍了项目属性更改无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!


TLDR;除了我设置的第一个项目之外,我的项目属性更改都没有任何效果


我在一段时间后下载了visual studio 2105社区版并启动了一个C ++项目,一切都很棒,


我昨天开始了一个新的C ++项目。我更改了中间目录的位置以及输出目录。这些更改没有任何效果,它仍然将它们放在默认位置。经过一番挫折之后,我继续前进,因为我只想
想要构建一个简单的工具。


但是后来我需要添加一些包含目录,这些也没有效果(是的) ,路径是正确的,头文件在那里)。所以现在我无法编译项目。我试图制作新项目,但所有项目都有同样的问题。因此,我从极度挫折中重新安装了
,这也没有改善。 


预处理器定义似乎也没有应用。什么都没有。


它们被保存并仍在属性对话框中,我可以在xproj的文本版本中看到它们。



任何想法?


编辑 - 我现在的解决方案是安装VS 2103社区,它的工作原理是

解决方案

< blockquote>

嗨朋友,


这很可能是由覆盖全局设置的特定设置引起的。这通常是从早期Visual Studio转换的结果。


还可能对文件进行特定设置。您可以通过在记事本中打开项目并删除任何过多的设置来解决此问题。


更改项目属性中的输出和中间目录



确保我们已成功更改 .vcxproj 文件(可以通过记事本笔):



 


祝你好运,


Fletch


Hi!

TLDR; none of my project property changes are having any effect except outside of the very first project I set up

I downloaded visual studio 2105 community edition a while back and started a C++ project and everything was great,

I started a new C++ project yesterday. I changed the location of the intermediate directory as well as the output directory. THose changes has no effect and it still put them in their default location. After some frustration I moved on as I just wanted to build a simple tool anyway.

But then I needed to add some include directories, and those had no effect either (yes, the path is correct and the header file is there). So now I can't compile the project. I tried to make new projects, but all of them have the same problem. So, I reinstalled out of extreme frustration and that hasn't improved things either. 

Preprocessor definitons don't seem to be applied either. Nothing is.

They are saved and still in the property dialog, and I can see them in the text version of the xproj.

Any ideas?

edit - my solution for now was to install VS 2103 community, which works

解决方案

Hi friend,

This is most likely caused by specific settings overriding global settings. This happens often as result of conversion from earlier Visual Studio.

There could also be specific settings on files. You could resolve this by opening project in notepad and removing any excessive settings.

After changing output and intermediate directories in project properties:

make sure we’ve changed it successfully in .vcxproj file(can be pen by notepad):

 

Best regards,

Fletch


这篇关于项目属性更改无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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