配置 .NET Core 以使用 x86 SDK [英] Configure .NET Core to use x86 SDK

查看:22
本文介绍了配置 .NET Core 以使用 x86 SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试更改我的 .NET Core Web 应用程序以使用 x86 版本的 .NET Core SDK.

I'm trying to change my .NET Core Web Application to use the x86 version of the .NET Core SDK.

我从此处安装了 x86 版本.我可以在 C:Program Files (x86)dotnetsdk1.0.0-preview2-003131

I installed the x86 version from here. I can see it in C:Program Files (x86)dotnetsdk1.0.0-preview2-003131

我将 global.json 更新为:

I updated my global.json to this:

{
    "projects": [ "src" ],
    "sdk": {
        "version": "1.0.0-preview2-003131",
        "architecture": "x86"
    }
}

但我收到错误:

该项目配置为使用 .NET Core SDK 版本 1.0.0-preview2-003131,该版本未安装或在路径 C:Program Filesdotnet 下找不到.构建和运行此项目需要这些组件.下载 global.json 中指定的 .NET Core SDK 版本或将 global.json 中的 SDK 版本更新为安装的版本.

我想我需要告诉我的应用程序查看 C:Program Files (x86)dotnet

I guess I need to tell my application to look in C:Program Files (x86)dotnet

我该怎么做?

感谢您的帮助!

推荐答案

找到解决方案.

当我安装 x64 版本时,它在我的 PATH 环境变量中创建了一个名为 C:Program Filesdotnet 的条目.我卸载了 x64 版本并安装了 x86 版本.但是,卸载 x64 版本并没有从我的 PATH 中删除 C:Program Filesdotnet.因此,我手动删除了它,并确保 x86 版本添加的条目 C:Program Files (x86)dotnet 存在.

When I installed the x64 version, it created an entry in my PATH environment variable called C:Program Filesdotnet. I uninstalled the x64 version and installed the x86 version. However, the un-installation of the x64 version did not remove the C:Program Filesdotnet from my PATH. So, I removed it manually, and made sure that the entry that the x86 version added, C:Program Files (x86)dotnet, existed.

这篇关于配置 .NET Core 以使用 x86 SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆