在Windows 10 32位上使用Omnisharp和DotNET Core调试器

3
我刚刚在一台全新的32位Windows 10机器上安装了Visual Studio Code和DotNET Core SDK。然而,我无法使其正常运行。
在Visual Studio Code中加载了C#扩展(Omnisharp)。显然它加载的是x64包而不是x86包:
[INFO] Starting OmniSharp at 'd:\Entwicklung\MyFirstApp'...
[INFO] Installing to C:\Users\Daniel\.vscode\extensions\ms-vscode.csharp-1.1.5\.omnisharp
[INFO] Attempting to download omnisharp-1.9-beta5-win-x64-net451.zip...
[INFO] Downloading to C:\Users\Daniel\AppData\Local\Temp\tmp-1252lY4HMeX6qNhB.tmp...

这会导致出现错误,即无法安装调试器:

Debugger cannot be installed。

Error: Can not find runtime target for framework '.NETStandardApp,Version=v1.5' compatible with one of the target runtimes: 'win10-x86, win81-x86, win8-x86, win7-x86'. Possible causes:
1. The project has not been restored or restore failed - run `dotnet restore`
2. The project does not list one of 'win10-x86, win81-x86, win8-x86, win7-x86' in the 'runtimes' section.
Error: 

System.InvalidOperationException: Can not find runtime target for framework '.NETStandardApp,Version=v1.5' compatible with one of the target runtimes: 'win10-x86, win81-x86, win8-x86, win7-x86'. Possible causes:
1. The project has not been restored or restore failed - run `dotnet restore`
2. The project does not list one of 'win10-x86, win81-x86, win8-x86, win7-x86' in the 'runtimes' section.
at.... 

如何解决这个问题?

谢谢!


在Windows 7 32位上也是一样。我甚至尝试过在Google上搜索Omnisharp的可下载版本,但说实话,如果我找到了一个,我也不知道该怎么做。 - AceShot
1个回答

1
我有一台上装有Windows 7 32位系统的上网本,希望使用VSCode/Omnisharp,但遇到了问题。Omnisharp目前仅支持64位系统,没有32位版本的计划。
令人困惑的是,它曾经兼容32位系统!如果硬件允许,可以升级到64位系统,或者使用不同的工具链(例如SharpDevelop)。
已经有人请求过这个更改,但开发人员似乎没有认真对待

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接