问题描述
今天,我做了一个 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
,然后按.
这将打开您当前设置为使用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解决方案文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!