Visual Studio 代码无法正确配置

Visual Studio Code Cannot Configure Correctly

出于某种原因,很可能是因为我不知道如何配置 Visual Studio 代码。我们说的是免费轻量版。

它总是显示某种类型的错误。我是这个产品的新手,不是 VS,而是这个版本。

我们如何正确设置此 IDE 以使用它?

这是我当前的错误。

    Downloading and configuring the .NET Core Debugger...
Telemetry is: Enabled
log  : Restoring packages for C:\Users\Erik Little\.vscode\extensions\ms-vscode.csharp-0.3.7\coreclr-debug\project.json...
info : Committing restore...
log  : Lock file has not changed. Skipping lock file write. Path: C:\Users\Erik Little\.vscode\extensions\ms-vscode.csharp-0.3.7\coreclr-debug\project.lock.json
log  : C:\Users\Erik Little\.vscode\extensions\ms-vscode.csharp-0.3.7\coreclr-debug\project.json
log  : Restore completed in 585ms.

NuGet Config files used:
    C:\Users\Erik Little\.vscode\extensions\ms-vscode.csharp-0.3.7\coreclr-debug\NuGet.config

Feeds used:
    https://www.myget.org/F/dotnet-core/api/v3/index.json
    https://api.nuget.org/v3/index.json
    https://www.myget.org/F/coreclr-debug/api/v3/index.json
Telemetry is: Enabled
Error: Can not find runtime target for framework 'DNXCore,Version=v5.0' compatible with one of the target runtimes: 'win10-x64, win81-x64, win8-x64, win7-x64'. Possible causes:
1. The project has not been restored or restore failed - run `dotnet restore`
2. The project does not list one of 'win10-x64, win81-x64, win8-x64, win7-x64' in the 'runtimes' section.
Error: 

System.InvalidOperationException: Can not find runtime target for framework 'DNXCore,Version=v5.0' compatible with one of the target runtimes: 'win10-x64, win81-x64, win8-x64, win7-x64'. Possible causes:
1. The project has not been restored or restore failed - run `dotnet restore`
2. The project does not list one of 'win10-x64, win81-x64, win8-x64, win7-x64' in the 'runtimes' section.
   at Microsoft.DotNet.ProjectModel.BuildWorkspace.GetRuntimeContext(ProjectContext context, IEnumerable`1 runtimeIdentifiers)
   at Microsoft.DotNet.Tools.Publish.PublishCommand.<>c__DisplayClass71_0.<SelectContexts>b__1(ProjectContext c)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Microsoft.DotNet.Tools.Publish.PublishCommand.TryPrepareForPublish()
   at Microsoft.DotNet.Tools.Publish.PublishCommand.<>c__DisplayClass0_0.<Run>b__0()
   at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)
   at Microsoft.DotNet.Tools.Publish.PublishCommand.Run(String[] args)
dotnet exited with error code 1
Error while installing .NET Core Debugger.

他们让设置看起来很容易,但总有一些我想念的东西。我有一个很好的想法,我没有正确设置配置文件,因为它对我来说看起来很奇怪。看起来都是JS。


此外,如果我指向一个我在其中工作的文件夹,并且使用 visual studio 企业版完全没有问题,我总是会收到此错误

eslintrc-error

它一直在寻找 eslintrc 但我到处寻找解决这个问题。

我也发布了这个问题的快照。

我知道一定是配置问题。

我连eslintrc是什么都不知道

请指教

它是 ecma 的 linter...rc 文件配置其选项。

所以您知道代码是一个编辑器,而不是真正的 IDE。如果您正在寻找免费的,我建议 Visual Studio 社区。