[英]Opening Visual Studio project after downloading from github results in “file does not exist in project directory”
For my coursework, I need to upload my Visual Studios project to a repo on GitHub. 对于我的课程,我需要将Visual Studios项目上载到GitHub上的仓库中。 I saved my project, including the .sln, .cs files, etc inside a local repo which was then pushed to GitHub through GitHub Desktop. 我将我的项目(包括.sln,.cs文件等)保存在本地存储库中,然后通过GitHub Desktop推送到GitHub。
I wanted to do a test download to make sure my instructor won't have a problem opening the project. 我想进行测试下载,以确保我的老师在打开项目时不会出现问题。 However, when I downloaded the repo as a zip file and opened the csproj file, all of the files inside that project had a padlock next to them. 但是,当我以zip文件形式下载回购文件并打开csproj文件时,该项目中的所有文件旁边都带有挂锁。 When clicked, I get the following message: 单击后,我收到以下消息:
"The item program.cs does not exist in the project directory. It may have been renamed, moved or deleted." “项目program.cs项在项目目录中不存在。它可能已被重命名,移动或删除。” None of those are true, so I'm confused on what the issue could be. 这些都不是真的,所以我对可能出现的问题感到困惑。 Here's a screenshot of what I'm seeing: error message . 这是我所看到的屏幕截图: error message 。
Does anyone know why I might be seeing this problem? 有谁知道我为什么会看到这个问题?
也许它尚未包含在项目中,请打开项目中的隐藏文件(在“解决方案资源管理器”->右侧第三个图标下),然后将其添加到项目中,然后尝试再次签入。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.