如何在Visual Studio中更改输出路径 [英] How to change output path in Visual Studio

查看:341
本文介绍了如何在Visual Studio中更改输出路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用C ++ Visual Studio.在项目的链接器设置中,我尝试更改OutputFile路径,但出现错误.我该怎么办..
路径是

%program files%/Library Manager/Library Manager.exe

i am using C++ Visual Studio. In Linker settings in my project, i tried to change the OutputFile path, but getting errors. How can i do that..
The path is

%program files%/Library Manager/Library Manager.exe

推荐答案

基于Visual Studio中定义的宏,它看起来不像是有效路径.在项目属性中重新检查您的设置.
That does not look like a valid path based on the macros defined in Visual Studio. Re-check your settings in the project properties.


在任何非废话的C ++项目设置中,都相对于解决方案路径指定了输出目录,该目录以
In any non-nonsense C++ project settings, the output directory is specified relative to the solution path, which is obtained as


(SolutionDir)的形式获得.您试图以一种或另一种方式设置绝对路径,这始终是一个坏主意.您应该假定您的程序放置在可以成功运行的任何位置.如果不满足此要求,那么您就是在浪费时间.

—SA
(SolutionDir). You are trying to setup an absolute path in one or another way, which is always a bad idea. You should assume that your program is placed in any location where is should successfully work. If this requirement is not met, you are wasting your time.

—SA


这篇关于如何在Visual Studio中更改输出路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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