3

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

如何解决这个问题?

谢谢!

4

1 回答 1

0

我有一个上网本,希望能与 Windows 7 32 位和 VSCode / Omnisharp 一起使用,我也遇到了困难。

Omnisharp 目前只支持 64 位。没有已知的 32 位版本计划。

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

人们已经要求进行此更改,但开发人员似乎并没有认真对待它

于 2016-10-17T09:15:13.467 回答