Visual Studio代码无法正确配置
问题描述:
出于某种原因,很可能是因为我不知道如何配置Visual Studio代码。我们正在讨论免费版本。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棉绒... RC文件配置其选项。
所以你知道代码是一个编辑器,而不是一个IDE。如果你正在寻找免费的,我会建议Visual Studio社区。
我已经得到了VS 2015的企业版,我只是说这是一个轻量级快速处理所有类型文件的肮脏方式。 –
这是,但你必须习惯你已经安装的棉绒和其他扩展。 我建议你试试'扩展:显示扩展建议'(用'CTL-p'访问),看看有什么可用的,你想用什么。 你的配置文件的确是一个JSON文件。您必须记住,这不是使用Visual Studio外壳:它是一个全新的编辑环境,具有不同的引擎,扩展集,整个套件和kaboodle。 – JeroldHaas