我刚刚在新的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...
这会导致无法安装调试器的错误:
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....
如何解决这个问题?
谢谢!
答案 0 :(得分:0)
我有一台上网本,我希望与Windows 7 32位和VSCode / Omnisharp一起使用,我也可以使用它。
Omnisharp only supports 64 bit at the moment。没有已知的32位版本计划。
令人困惑的是它用于32位兼容!要么切换到64位(如果您的硬件允许)或设置不同的工具链(可能使用SharpDevelop?)。
人们已经请求了此更改,但开发人员don't seem to take it seriously。