如何从命令提示符下打开Visual Studio解决方案文件 [英] How to open Visual Studio Solution File from the Command Prompt

查看:65
本文介绍了如何从命令提示符下打开Visual Studio解决方案文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,我做了一个 git clone https://...MySolution.git 后进入Windows命令提示符,想打开 .sln (即,解决方案文件).

Today I was in the Windows Command Prompt after doing a git clone https://...MySolution.git and wanted to open the .sln (i.e., solution file) from the new directory of the cloned repo.

在Visual Studio中打开此新解决方案的命令是什么?假设相对路径为/MySolution/MySolution.sln

What is the command to open this new solution in Visual Studio? Suppose the relative path is /MySolution/MySolution.sln

推荐答案

如果尚未完成 cd MySolution ,但仍位于您进行 git克隆的目录只需输入

If you haven't done cd MySolution but are still in the directory from which you did the git clone just type

启动MySolution/MySolution.sln ,然后按 Enter .

这将打开您当前设置为使用Windows中的 .sln 文件打开的任何Visual Studio版本.

This will open whatever version of Visual Studio you currently have set to open with .sln files in Windows.

这篇关于如何从命令提示符下打开Visual Studio解决方案文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆