Visual Studio 2010 - 源代码从项目文件夹中消失

时间:2022-10-16 22:57:49

I created a Win32 Console project (C++) using Visual Studio 2010 by pasting multiple files into the solution explorer window (This project was created as an empty project). But when I go to the file directory of my project (to zip up the source files) they are not visible. Where did my files go? :)

我使用Visual Studio 2010创建了一个Win32控制台项目(C ++),方法是将多个文件粘贴到解决方案资源管理器窗口中(此项目是作为空项目创建的)。但是当我转到我的项目的文件目录(压缩源文件)时,它们是不可见的。我的文件在哪里? :)

2 个解决方案

#1


2  

Try looking in the properties window when you have the file selected - it should give you the path to it

选择文件后尝试查看属性窗口 - 它应该为您提供它的路径

#2


2  

It's possible it created a reference to the original path you copied them from. You might need to copy them to the correct folder in windows explorer (outside Visual Studio), and then right-click to add an existing item to the project.

它可能会创建对您复制它们的原始路径的引用。您可能需要将它们复制到Windows资源管理器(Visual Studio外部)中的正确文件夹,然后右键单击以将现有项目添加到项目中。

#1


2  

Try looking in the properties window when you have the file selected - it should give you the path to it

选择文件后尝试查看属性窗口 - 它应该为您提供它的路径

#2


2  

It's possible it created a reference to the original path you copied them from. You might need to copy them to the correct folder in windows explorer (outside Visual Studio), and then right-click to add an existing item to the project.

它可能会创建对您复制它们的原始路径的引用。您可能需要将它们复制到Windows资源管理器(Visual Studio外部)中的正确文件夹,然后右键单击以将现有项目添加到项目中。