简体   繁体   English

解决方案中的 C# 项目现在显示为 F#

[英]C# projects in a solution now displaying as F#

Using the dotnet cli interface in a VS Code Terminal.在 VS Code 终端中使用 dotnet cli 接口。 I have created a blank solution file, a blank project file and added the project to the new solution.我创建了一个空白解决方案文件、一个空白项目文件并将该项目添加到新解决方案中。 Now when I open the folder it opens a F# solution explorer?现在,当我打开文件夹时,它会打开 F# 解决方案资源管理器? Is this default behavior?这是默认行为吗?

steps:脚步:

  1. dotnet new sln dotnet 新 sln
  2. dotnet new console -lang c# dotnet 新控制台-lang c#
  3. dotnet sln test.sln add test.csproj dotnet sln test.sln 添加 test.csproj

If you have installed Ionide plugin it will always try to open solution explorer by default.如果您安装了Ionide插件,它会默认尝试打开解决方案资源管理器。 You can disable it in settings: press ctrl +, and add this switch您可以在设置中禁用它:按ctrl +,然后添加此开关

{
    "FSharp.showExplorerOnStartup": false,
}

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

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