在Visual Studios中编译代码 [英] compile code in Visual Studios

查看:57
本文介绍了在Visual Studios中编译代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定要为此做些什么,但我真正想知道的是如何编译位于Visual Studio项目文件夹之外的代码。


例如,如果我的项目位于C:\ my project \ ...

但源文件位于X:\source files \ ....


我可以添加一点,我不能将源文件和项目文件一起移动。他们必须保持独立。如何告诉我的Visual Studio 2008编译该文件夹中的代码?


有谁知道吗?


谢谢。

I wasn''t sure how what subject to put for this, but what I really want to know is how to compile code which is located outside of my Visual Studio project folder.

For example if my project is located in C:\my project\...
But the source files are located X:\source files\....

May I add the point that I cannot move the source files and nor the project files together. They have to remain seperate. How can I tell my Visual Studio 2008 to compile the code located in that folder?

Does anyone know?

Thank you.

推荐答案

您*可能*可以在文本编辑器中打开项目文件并输入文件的路径名。

您冒险虽然破坏了项目文件,所以一定要制作它的备份副本
You *might* be able to open the project file in a text editor and input pathnames for the files.
You run the risk of corrupting the project file though, so be sure to make a backup copy of it


右键单击

添加现有项目

浏览

使用添加按钮上的三角形选择添加链接按钮而不是制作副本的正常添加。
Right click
Add existing item
browse
Use the triangle on the ''add'' button to select "add link" instead of the normal add that makes a copy.


tlhintoq:我无法找到你正在谈论的三角形。这是在Visual Studio 2008中吗?
tlhintoq: I am having trouble finding the triangle you are talkin about. This is in Visual Studio 2008 right?


这篇关于在Visual Studios中编译代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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