如何将代码添加到现有项目?
问题描述:
我现在很沮丧,但是我想向一个无法正常工作的项目中添加一个可编译的Visual Studio项目.如何将代码添加到项目中?
I''m pretty frustrated now, but I want to add a compilable visual studio project to a project that doesn''t work out of the tin. How can I add code to the project ?
答
假设我了解您的问题,并且您使用的是Visual Studio的某些版本,请在菜单.或者,转到Solution Explorer
窗口,然后右键单击要添加内容的树枝.例如,您可以将项目添加到解决方案,将文件夹添加到项目,或将文件添加到文件夹.如果使用其他IDE,请尝试Help
菜单项.如果没有IDE,则只需在相应的文件夹中创建一个文件.
Assuming I understand your problem and you are using some version of Visual Studio, useFile
New
on the menu. Alternatively go to theSolution Explorer
window and right click on the tree branch where you want to add something. For example, you can add a Project to the Solution, a Folder to a Project, or a File to a Folder. If you are using some other IDE then try theHelp
menu item. If you do not have an IDE then just create a file in the appropriate folder.
将其放置一会儿.在从头开始的简单项目上锻炼您的代码能力,并使用您感兴趣的语言阅读编程.当您有足够的信心时,您的问题很可能会消失.—SA
Set it aside for a while. Exercise you coding muscles on the simple projects made from scratch and read on programming using the language you''re interested in. When you get enough confidence, your problem will most likely disappear.—SA