Visual Studio Code - C# 控制台应用程序 [英] Visual Studio Code - C# Console Application

查看:37
本文介绍了Visual Studio Code - C# 控制台应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能是一个重复或非常基本的问题...

Possibly a repeat or very basic question...

我最近在 Windows 上下载了 Visual Studio Code 并尝试打开我现有的Hello World!!"控制台应用程序.

I have recently downloaded Visual Studio Code on Windows and tried to open my existing "Hello World!!" console application.

我已经下载了相同的 C# 扩展.

I have downloaded the C# extension for the same.

能否请您指点我的文档,在那里我可以找到配置 VS Code 的分步指南,以便我可以打开现有的控制台应用程序并调试/运行相同的应用程序.

Could you please point me to documentation where I can find step-by-step guide for configuring VS Code so that I can open existing console app and debug/ run the same.

目前,当我打开使用 VS2013 编写的现有 C# 项目并尝试调试/运行时,它不起作用.我收到以下错误.preLaunchTask 'build' 以退出代码 1 终止."

Currently when I opened my existing C# project written using VS2013 and tried to debug/ run, it is not working. I'm getting following error. "The preLaunchTask 'build' terminated with exit code 1."

还是我试图做一些根本不正确的事情??

Or am I trying to do something which is not correct at all??

推荐答案

答案是否定的

VS Code 不支持调试运行在桌面 .NET 框架.

VS Code does not support debugging applications running on the Desktop .NET Framework.

VS Code 针对跨平台 .NET Core 开发进行了优化.VS Code 无法识别 C# 项目类型.

VS Code is optimized for cross-platform .NET Core development Due to this focus, many standard C# project types are not recognized by VS Code.

不受支持的项目类型是

  • ASP.NET MVC 应用程序
  • 控制台应用程序
  • WPF
  • 桌面 .NET Framework 上的任何内容.

VS Code 支持调试在任一 .NET 上运行的 C# 应用程序核心或单声道

VS Code supports debugging of C# applications running on either .NET Core or Mono

VS Code 仅支持有限的一组项目类型(主要是 .NET Core).如需完整的 .NET 项目支持,请使用 Visual Studio 社区

VS Code only supports a limited set of project types (primarily .NET Core). For full .NET project support, use Visual studio community

这篇关于Visual Studio Code - C# 控制台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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