C# 我的项目文件存储在哪里
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9444064/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where are my project files stored
提问by James Jeffery
I am having some issues with VS C# 2010. Upon create a project I can not seem to locate the project files after saving.
我在使用 VS C# 2010 时遇到了一些问题。创建项目后,我似乎无法在保存后找到项目文件。
On my laptop they store to C:\Users\james\Documents\Visual Studio 2010\Projects but on my desktop they are being stored in C:\Users\james\AppData\Local\Temporary Projects\mediaplayer
在我的笔记本电脑上,它们存储在 C:\Users\james\Documents\Visual Studio 2010\Projects 但在我的桌面上,它们存储在 C:\Users\james\AppData\Local\Temporary Projects\mediaplayer
I can seem to locate this folder, even when using the variable %appData%. There is no Local, or Tempory Projects folder. At least I can't see them.
我似乎可以找到这个文件夹,即使使用变量 %appData% 也是如此。没有本地或临时项目文件夹。至少我看不到他们。
I much preferred the project being stored in Documents. Is it possible to change this? If not, how can I physically access the folder with my project within it?
我更喜欢将项目存储在 Documents 中。有没有可能改变这个?如果没有,我如何物理访问包含我的项目的文件夹?
采纳答案by Jon Skeet
When you first fully save everything (or exit and choose to save) the project files will be saved in the expected location. It's only in a temporary location until you explicitly save.
当您第一次完全保存所有内容(或退出并选择保存)时,项目文件将保存在预期位置。在您明确保存之前,它只是在一个临时位置。
回答by svick
Projects are stored in Temporary Projects under some settings only if you never save them. If you save the project (File → Save All) then you can choose where to save it. The default is the Projects folder inside your Documents.
仅当您从不保存项目时,项目才会在某些设置下存储在临时项目中。如果您保存项目(文件 → 全部保存),那么您可以选择保存它的位置。默认为文档中的 Projects 文件夹。
回答by Kamil
You can change default folder for new projects in Visual Studio settings.
您可以在 Visual Studio 设置中更改新项目的默认文件夹。
- Click Tools menu
- Click Options
- Find "Projects and Solutions"
- Choose "Project location"
- 单击工具菜单
- 单击选项
- 查找“项目和解决方案”
- 选择“项目位置”
AppData folder is hidden. You have to type its address in address bar manually or you can enable view for hidden files in Windows Explorer.
AppData 文件夹被隐藏。您必须在地址栏中手动键入其地址,或者您可以在 Windows 资源管理器中启用隐藏文件的查看。
回答by Benjamin Roberts
For Visual Studio 2019 & 2017 :
对于 Visual Studio 2019 和 2017:
- Click
Toolsmenu - Click
Options - Find
Projects and Solutions - Choose
Locations
- 点击
Tools菜单 - 点击
Options - 找
Projects and Solutions - 选择
Locations
and edit the projects location box (the first one)
并编辑项目位置框(第一个)
回答by Thakurdesai
C:Windows\Users\"username"\source\repos
C:Windows\Users\"用户名"\source\repos
this the location of all your projects. thank you
这是您所有项目的位置。谢谢你

