简体   繁体   English

从github下载后打开Visual Studio项目会导致“文件在项目目录中不存在”

[英]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.

相关问题 在Visual Studio中打开旧项目时,类型名称不存在 - The type name does not exist while opening an old project in Visual studio 使用Visual Studio 2015打开WPF项目后,当前上下文错误中不存在名称“ InitializeComponent” - The name 'InitializeComponent' does not exist in the current context error after opening WPF project with Visual Studio 2015 Visual Studio项目目录 - Visual studio project directory Visual Studio 在打开项目时冻结 - Visual Studio Freezing On Opening Project Visual Studio 2010 Silverlight项目在浏览器中以file://而不是localhost://打开 - Visual Studio 2010 Silverlight Project Opening in Browser as file:// instead of localhost:// 使用Visual Studio打开UHF RFID DevKit的项目文件 - Opening project file for a UHF RFID DevKit using Visual Studio Xamarin Visual Studio 未在 android 项目中打开 .axml 文件 - Xamarin visual studio not opening .axml file in android project Visual Studio生成错误:项目中不存在目标“ MainResourceGeneration” - Visual Studio Build Error: The target “MainResourceGeneration” does not exist in the project 在Visual Studio中建立XAML档案会导致不存在的错误 - Building XAML file in visual Studio results in an error on a line that does not exist 打开在Visual Studio 2010中创建项目后,Visual Studio 2012中编译器的错误行为 - Wrong behavior of the compiler in Visual Studio 2012 after opening project create in Visual Studio 2010
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM