我刚刚在一台全新的 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/