Visual Studio代码无法正确配置

时间:2016-06-10 22:40:53

标签: visual-studio debugging eslint

出于某种原因,很可能是因为我不知道如何配置Visual Studio Code。我们正在谈论自由光版本。

它始终显示某种类型的错误。我是这个产品的新手,不是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是什么。

请告知。

eslintrc-error

1 个答案:

答案 0 :(得分:0)

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

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