英文:
Open a project with .cs extension files?
问题
我有一个包含很多文件的文件夹;在主文件夹中有一个扩展名为 .sln 的文件和另一个包含很多 .cs 和 .config 文件的文件夹,我认为这是一个.NET项目,如何打开这个项目?是通过Visual Studio吗?我有Visual Studio 2022 for mac。
我的Visual Studio 2022 for mac不允许我选择主文件夹来打开它,就像一个解决方案一样,如何正确打开它?
英文:
i have a folder with a lot files; in the main folder have a .sln file extensión and other folder with lot files .cs and .config, i think that is about of a .NET project, how do open this project? is trought Visual Studio? i have Visual Studio 2022 for mac.
My Visual Studio 2022 for mac dont allow me select the main folder for open it like a Solution, how do open it correctly?
答案1
得分: 2
请确保您要将其打开为文件夹还是解决方案,并检查您的 .net 项目是否与 Visual Studio 的该版本匹配(也许您需要较旧的版本,但您尚未指定 .net 项目的版本号或如果有的话,框架的版本号),尽管它们看起来非常相似,但如果您将其打开为文件夹,您可以看到更多的文件和文件夹。如果您将项目打开为解决方案,您将能够更好地查看项目架构。如果您有一个 .net 项目,将其作为解决方案打开会更好。
英文:
Make sure if you want to open it as a folder or as a solution and check if your .net project matches that version of Visual Studio (maybe you need an older version, but you have not specified the .net project's version number or the framework's version number if it has one), although they look very similar, you can see more files and folders inside if you open it as a folder. If you open the project as a solution you will be able to see the project architecture better. Opening it as a solution is better if you have a .net project.
答案2
得分: 1
尝试在Visual Studio中打开.sln文件。
英文:
Try opening the .sln file in visual studio
答案3
得分: 1
从Visual Studio的主菜单中...选择 打开项目或解决方案
。
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论