简体   繁体   English

打开vbproj和sln文件会导致Visual Studio打开

[英]Opening vbproj and sln files leads to visual studio open

I searched about vjproj and sln files in general on this website. 我在该网站上搜索了有关vjproj和sln文件的一般信息。 I understand why they exist. 我知道它们为什么存在。

However, my question is, when I open those files in sublime text, I see the xml or something else clearly (or anything they are supposed to show). 但是,我的问题是,当我以崇高的文字打开这些文件时,我清楚地看到了xml或其他内容(或应该显示的任何内容)。 But when I double click them, they just lead to usual visual studio environment. 但是,当我双击它们时,它们只会导致通常的视觉工作室环境。 And I don't understand why executing those two files make visual studio open even though they are supposed to be markup languages? 而且我不明白为什么执行这两个文件会使Visual Studio打开,即使它们应该是标记语言也是如此?

Thank you! 谢谢!

OS only care about the file's extension to pick which application responsible for handling that file. 操作系统只关心文件的扩展名,以选择负责处理该文件的应用程序。 In most case, .vbproj and .sln are associated with Visual Studio application no matter the file's content. 在大多数情况下,无论文件内容如何, .vbproj.sln都与Visual Studio应用程序关联。 To test this behavior, try to rename the file's extension to .xml and it will be treated as XML file. 若要测试此行为,请尝试将文件的扩展名重命名为.xml ,它将被视为XML文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM