2016-06-10 120 views
0

出於某種原因,很可能是因爲我不知道如何配置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是什麼。

請指教。

eslintrc-error

回答

0

這對ECMA棉絨... RC文件配置其選項。

所以你知道代碼是一個編輯器,而不是一個IDE。如果你正在尋找免費的,我會建議Visual Studio社區。

+0

我已經得到了VS 2015的企業版,我只是說這是一個輕量級快速處理所有類型文件的骯髒方式。 –

+0

這是,但你必須習慣你已經安裝的棉絨和其他擴展。 我建議你試試'擴展:顯示擴展建議'(用'CTL-p'訪問),看看有什麼可用的,你想用什麼。 你的配置文件的確是一個JSON文件。您必須記住,這不是使用Visual Studio外殼:它是一個全新的編輯環境,具有不同的引擎,擴展集,整個套件和kaboodle。 – JeroldHaas