debugging Visual Studio代码无法正确配置

lrl1mhuk  于 2023-05-07  发布在  其他
关注(0)|答案(1)|浏览(168)

出于某种原因,很可能是因为我不知道如何配置Visual Studio Code。我们正在谈论自由光版本。
它总是显示某种类型的错误。我是这个产品的新手,* 不是 * Visual Studio Code,而是这个版本。
我们如何正确设置这个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.

他们使它看起来如此容易设置,但总有一些东西,我错过了。我有一个很好的想法,我没有正确设置配置文件,因为它看起来很奇怪。它看起来像所有的JavaScript。
此外,如果我指向一个文件夹,我在没有任何问题的Visual Studio企业版工作,我总是得到这个错误

eslintrc-error

它一直在寻找**eslintrc**,但我已经到处寻找解决这个问题。
我也发布了这个问题的快照。
我知道这一定是配置问题。
我甚至不知道eslintrc是什么。
我该怎么办?

cx6n0qe3

cx6n0qe31#

这是ECMAScript的一个linter... rc文件配置其选项。
所以你知道Visual Studio Code是一个编辑器,而不是一个真正的IDE。如果您正在寻找免费版本的 Visual Studio,我建议您使用Visual Studio Community。

相关问题