将语言添加到默认的.net环境设置

Add language to default .net environment settings
2021-07-22
  •  译文(汉语)
  •  原文(英语)

VS设置为默认的VisualBasic,但是我需要将现有的C#项目导入到我的解决方案中,在该解决方案中我已经有了VB项目.

但是,当我尝试将现有项目添加到解决方案并导航到C#项目时-我看不到项目文件.从下拉设置菜单中,我可以只导入.vbproj其他.vb...

我试图创建新的C#项目,但只能制作VB以及一些办公工具和Web.我没有C#的可能性,所以我想是因为Visual Studio仅设置为VB.

如何添加/更改设置,以便也可以创建/导入C#项目?

编辑:我尝试去工具->导入和导出设置...,但是我没有导入C#开发设置或任何其他可能性.我只能添加Project dev.放.和VB开发人员.放.

PS这不是我的计算机,所以我不是安装Visual Studio的计算机,也不知道已设置/安装了哪些设置.

速聊1:
您是否通过Visual Studio安装程序安装了"C#"?
速聊2:
- 我不知道.这不是我的计算机,所以我不是安装Visual Studio的计算机,也不知道已设置/安装了哪些设置.我将其作为对问题的编辑
速聊3:
-如果无法创建C#项目,则Visual Studio版本不支持创建C#项目,因此将无法创建C#项目.PC的所有者需要安装Visual Studio C#Express或完全专业的付费版本的Visual Studio.
解决过程1

如果您使用的是Visual Studio Express Edition for VB.NET;那是不可能的

解决过程2

Visual Basic很可能会被选择为您的默认编程语言.创建新项目时,可以通过折叠"其他语言"文件夹来选择其他语言.如果其中不包含C#,则必须安装VS的C#支持.

您可以在"添加和删除程序"或"程序和功能"中执行此操作,然后更改Visual Studio安装.选择C#功能,安装完成后,您现在应该可以使用C#打开,添加和创建项目.

The VS is set to default VisualBasic, but I need to import existing C# projects into my solution, where I already have the VB project.

But when I try to add an existing project to the solution and navigate to the C# project - I can't see the project file. From the drop-down settings menu I have the possibility to import only .vbproj and other .vb...

I tried to create new C# project, but I can only make VB and some office tools and Web. I don't have C# possibility, so I suppose it's because the Visual Studio has been set to VB only.

How can I add/change settings so I can create/import C# projects, as well?

EDIT: I tried going to Tools->Import and Export Settings... but I didn't have the possibility to import C# development settings or whatsoever. I could only add Project dev. set. and VB dev. set.

P.S. It's not my computer, so I was not the one to install the Visual Studio and I don't know what settings were set/installed.

Talk1:
Have you installed "C#" via Visual Studio installer?
Talk2:
- I don't know. It's not my computer, so I was not the one to install the Visual Studio and I don't know what settings were set/installed. I will write that as an edit to the question
Talk3:
- If you are unable to create a C# project then the version of Visual Studio does not support creating a C# project and thus you will be unable to create a C# project. The owner of the pc needs to either install Visual Studio C# Express or the full professional paid version of Visual Studio.
Solutions1

If you are using the Visual Studio Express Edition for VB.NET; then that's not possible.

Solutions2

Visual Basic will most likely be selected as your default programming language. When creating a new project you can select a different language by collapsing the 'Other Languages' folder. If this does not contain C# you will have to install C# support for VS.

You can do this at 'Add and Remove Programs' or 'Programs and Features' and then changing the Visual Studio installation. Select the C# feature and after the installation completes you should now be able to open, add and create projects with C#.

转载于:https://stackoverflow.com/questions/17361978/add-language-to-default-net-environment-settings

本人是.net程序员,因为英语不行,使用工具翻译,希望对有需要的人有所帮助
如果本文质量不好,还请谅解,毕竟这些操作还是比较费时的,英语较好的可以看原文

留言回复
我们只提供高质量资源,素材,源码,坚持 下了就能用 原则,让客户花了钱觉得值
上班时间 : 周一至周五9:00-17:30 期待您的加入