visual-studio-code - Windows 10 32 位上的 Omnisharp 和 DotNET Core 调试器

标签 visual-studio-code omnisharp

我刚刚在一台全新的 Windows 10 32 位机器上安装了 Visual Studio Code 和 DotNET Core SDK。但是,我无法让它正常运行和工作。

我已经在 Visual Studio Code 中加载了 csharp 扩展 (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的错误:

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 位和 VSCode/Omnisharp 一起使用,但我也碰壁了。

Omnisharp only supports 64 bit at the moment .没有已知的 32 位版本计划。

令人困惑的是它曾经是 32 位兼容的!要么切换到 64 位(如果您的硬件允许),要么设置不同的工具链(也许使用 SharpDevelop?)。

人们已经要求进行此更改,但开发人员 don't seem to take it seriously .

关于visual-studio-code - Windows 10 32 位上的 Omnisharp 和 DotNET Core 调试器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37772815/

相关文章:

c# - Visual Studio Code Intellisense 停止处理 C# 文件

asp.net-core - 在 VSCode OmniSharp 扩展中找不到指定的 SDK 'Microsoft.NET.Sdk.Web'

c# - OmniSharp 无法在 Visual Studio Code 中启动

c# - 如何在 vs 代码中生成具有文件范围命名空间语法(C#10)的类?

c# - 在 Visual Studio Code for Mac 上找不到类型或命名空间名称 'System'

visual-studio-code - Visual Studio Code 如何在多个选项卡中打开同一个文件?

visual-studio-code - VSCode防止文件资源管理器跳转

javascript - 如何在 VS Code 中的 .ts 文件下显示 .js 文件?

visual-studio-code - VS Code : Sign In Error :You appear to be offline. 请检查您的网络连接

visual-studio-code - 如何使用环境变量为 pytest 配置 VS 代码